Live threats

All CVEs / Fastify

CVE-2020-28482Fastify-csrf

High 8.8 No auth needed

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
Weakness (CWE)
CWE-200, CWE-732
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

Original NVD text.

What to do

  1. Apply the vendor's security update for Fastify-csrf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
fastifyfastify-csrf< 3.0.0

Official sources

References

Links published by the sources. Open them with care.