GHSA-49wp-qq6x-g2rf

Suggest an improvement
Source
https://github.com/advisories/GHSA-49wp-qq6x-g2rf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-49wp-qq6x-g2rf/GHSA-49wp-qq6x-g2rf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-49wp-qq6x-g2rf
Aliases
Published
2021-01-20T21:30:34Z
Modified
2026-03-13T22:11:15.441648Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Cross-site Request Forgery in fastify-csrf
Details

The package fastify-csrf before 3.0.0 has a set of issues that affect its ability to do CSRF protection. 1. The generated cookie used insecure defaults, and did not have the httpOnly flag on: cookieOpts: { path: '/', sameSite: true } 2. The CSRF token was available in the GET query parameter

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2021-01-20T19:49:01Z",
    "cwe_ids": [
        "CWE-352"
    ],
    "severity": "HIGH",
    "nvd_published_at": "2021-01-19T15:15:00Z"
}
References

Affected packages

npm / fastify-csrf

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-49wp-qq6x-g2rf/GHSA-49wp-qq6x-g2rf.json"