What’s Vulnerable › Vulnerabilities
CVE-2020-28482: Cross-site Request Forgery (CSRF)
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-01-19 · updated 2026-06-17
- Weakness: CWE-200
Description
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
Affected products
- fastify-csrf: before 3.0.0 — fixed in 3.0.0
How to fix
Upgrade to a fixed version: fastify-csrf 3.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/fastify/fastify-csrf/pull/26
- https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044
- https://github.com/fastify/fastify-csrf/pull/26
- https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044
Get alerted when CVE-2020-28482 or the next vulnerability affects your stack