fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks.…
Historical advisory recorded 24 Oct 2026 18:17:21 UTC. Read the latest advisory.
nvd · CVE-2021-29624
Publishedfastify-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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2021-29624
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-565 · CWE-352
Original publisher date fields
published: 2021-05-19T22:15:07.837
lastModified: 2026-06-17T03:48:02.987
1 source CPE criteria · context only
- cpe:2.3:a:fastify:fastify-csrf:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON