CVE-2020-28482
HIGH8.8EPSS 0.31%Cross-site Request Forgery in fastify-csrf
Published: 1/20/2021Modified: 3/13/2026
Also known as:GHSA-49wp-qq6x-g2rf
Description
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
Affected packages (1)
- npm/fastify-csrffrom 0, < 3.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-28482
- PATCHhttps://github.com/fastify/fastify-csrf
- WEBhttps://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253
- WEBhttps://github.com/fastify/fastify-csrf/pull/26
- WEBhttps://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044
- WEBhttps://www.npmjs.com/package/fastify-csrf