Read the docs
TI-2021-10332 Aliases CVE-2021-29624GHSA-rc4q-9m69-gqp8

Lack of protection against cookie tossing attacks in fastify-csrf

Priority LOW 30CWE-565Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Tampering
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-352.

Summary

fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf prior to 3.1.0 have a "double submit" mechanism using cookies with an application deployed across multiple subdomains, e.g. "heroku"-style platform as a service. Version 3.1.0 of the fastify-csrf fixes it. the vulnerability. The user of the module would need to supply a `userInfo` when generating the CSRF token to fully implement the protection on their end. This is needed only for applications hosted on different subdomains.

Why it matters now

EPSS 0.00829 57th percentileScored 2026-11-07
Fix Fixed fastify-csrf (fastify): 3.1.0fastify-csrf (npm): 3.1.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
fastifyfastify-csrfbefore 3.1.03.1.0Patch availableCNA
—fastify-csrf (npm)before 3.1.03.1.0Patch availableGHSA-rc4q-9m69-gqp8
  • fastify-csrf Vendorfastify Affected before 3.1.0 Fixed in 3.1.0 Patch available CNA
  • fastify-csrf (npm) Vendor— Affected before 3.1.0 Fixed in 3.1.0 Patch available GHSA-rc4q-9m69-gqp8

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:fastify:fastify-csrf:*:*:*:*:*:node.js:*:*before 3.1.0Vulnerablefastify
  • cpe:2.3:a:fastify:fastify-csrf:*:*:*:*:*:node.js:*:* Versions before 3.1.0 Vulnerable ·fastify

Remediation

  • Fix · CNA fastify-csrf (fastify) Fixed in 3.1.0
  • Fix · GHSA-rc4q-9m69-gqp8 fastify-csrf (npm) Fixed in 3.1.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-29624
  2. 2026-10-03 Alias added: GHSA-rc4q-9m69-gqp8

References

  • TI-2020-17292 Cross-site request forgery (CSRF) in fastify-csrf CVSS 3.1HIGH 8.8

Sources