Cross-site request forgery (CSRF) in fastify-csrf
Priority MEDIUM 40CWE-200Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure, Tampering
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-200 and CWE-352.
Summary
This affects the package fastify-csrf before 3.0.0. 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
Why it matters now
EPSS 0.00992 62nd percentileScored 2026-11-07
Fix Fixed fastify-csrf: 3.0.0fastify-csrf (npm): 3.0.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | fastify-csrf | before 3.0.0 | 3.0.0 | Patch available | CNA |
| — | fastify-csrf (npm) | before 3.0.0 | 3.0.0 | Patch available | GHSA-49wp-qq6x-g2rf |
- fastify-csrf Vendor— Affected before 3.0.0 Fixed in 3.0.0 Patch available CNA
- fastify-csrf (npm) Vendor— Affected before 3.0.0 Fixed in 3.0.0 Patch available GHSA-49wp-qq6x-g2rf
Remediation
- Fix · CNA fastify-csrf Fixed in 3.0.0
- Fix · GHSA-49wp-qq6x-g2rf fastify-csrf (npm) Fixed in 3.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-28482
- 2026-10-03 Alias added: GHSA-49wp-qq6x-g2rf
References
More Fastify-csrf vulnerabilities
- TI-2021-10332 Lack of protection against cookie tossing attacks in fastify-csrf CVSS 3.1MEDIUM 6.5
Sources
- CVE-2020-28482 · CVE Program
- CVE-2020-28482 · NVD
- FIRST EPSS
- GHSA-49wp-qq6x-g2rf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences