# CVE-2020-28482: Cross-site Request Forgery (CSRF)

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-01-19 · Modified: 2024-09-16
- Aliases: GHSA-49wp-qq6x-g2rf, SNYK-JS-FASTIFYCSRF-1062044
- Record: https://cvemate.com/vulnerability/CVE-2020-28482 · JSON: https://cvemate.com/vulnerability/CVE-2020-28482/json

## Description

```text
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
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.992%, percentile 63.723%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- fastify fastify-csrf: \< 3.0.0
- Npm fastify-csrf (Npm): \< 3.0.0

## References

- <https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044>
- <https://github.com/fastify/fastify-csrf/pull/26>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-28482>
- <https://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253>
- <https://github.com/fastify/fastify-csrf>
- <https://www.npmjs.com/package/fastify-csrf>

---

Data as of 2026-12-05T09:21:29.373Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
