CVE-2020-28482Fastify-csrf
High 8.8 No auth needed
Follow: this CVE · Fastify · Fastify-csrf We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 64
- Auth required
- No
- Published
- Jan 19, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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
What to do
- Apply the vendor's security update for Fastify-csrf.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | fastify-csrf |
< 3.0.0 |
3.0.0 |
npm install fastify-csrf@3.0.0 |
Per OSV / GitHub Advisories (GHSA-49wp-qq6x-g2rf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| fastify | fastify-csrf | < 3.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- snyk.io Third Party Advisory