Skip to main content
← All vulnerabilities
CVE-2021-29624GHSA-RC4Q-9M69-GQP8

Lack of protection against cookie tossing attacks in fastify-csrf

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.0
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • fastify fastify-csrf

    fixed in 3.1.0

  • fastify-csrfnpm

    fixed in 3.1.0

References 6

GitHub · fastify/fastify-csrf

GitHub · fastify/csrf

cheatsheetseries.owasp.org

owasp.org