CVE-2020-28482
HIGH 8.8CVSS 3.1Cross-site Request Forgery in fastify-csrf
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
- Published
- 19 Jan 2021
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-200CWE-352
- Also known as
- GHSA-49wp-qq6x-g2rfSNYK-JS-FASTIFYCSRF-1062044
- Sources
- NVDJSONOSV GHSA-49wp-qq6x-g2rfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastify-csrfcpe:2.3:a:fastify:fastify-csrf:*:*:*:*:*:node.js:*:* |
< 3.0.0 | 3.0.0 |
| OSV | npm | fastify-csrf | < 3.0.0 | 3.0.0 |
References
- https://github.com/fastify/fastify-csrf/pull/26 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-28482 · ADVISORY
- https://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253 · WEB
- https://github.com/fastify/fastify-csrf · PACKAGE
- https://www.npmjs.com/package/fastify-csrf · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 19 Jan 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Jan 2021)