{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-29624","published":"2021-05-19T22:15:07.837000Z","last_modified":"2026-06-17T03:48:02.987000Z","status":"Modified","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-565","CWE-352"],"cpes":[{"criteria":"cpe:2.3:a:fastify:fastify-csrf:*:*:*:*:*:node.js:*:*","part":"a","vendor":"fastify","product":"fastify-csrf","version_end_excluding":"3.1.0"}],"cpes_truncated":false,"vendors":["fastify"],"products":["fastify/fastify-csrf"],"epss":{"score":0.00829,"percentile":0.58651,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-rc4q-9m69-gqp8","ecosystem":"npm","name":"fastify-csrf","purl":"pkg:npm/fastify-csrf","ranges":[{"introduced":"0","fixed":"3.1.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":54,"links":{"html_es":"/es/cve/CVE-2021-29624/","html_en":"/en/cve/CVE-2021-29624/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29624","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-29624"},"untrusted":{"vendor_name":"Fastify","product_name":"Fastify-csrf","desc_en":"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.","affected":[{"untrusted_vendor":"fastify","untrusted_product":"fastify-csrf","versions":[]}],"references":[{"url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html","tags":["Third Party Advisory"]},{"url":"https://github.com/fastify/csrf/pull/2","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/fastify/fastify-csrf/pull/51","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/fastify/fastify-csrf/releases/tag/v3.1.0","tags":["Third Party Advisory"]},{"url":"https://github.com/fastify/fastify-csrf/security/advisories/GHSA-rc4q-9m69-gqp8","tags":["Patch","Third Party Advisory"]},{"url":"https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf","tags":["Third Party Advisory"]}]}}