CVE-2021-29624

Lack of protection against cookie tossing attacks in fastify-csrf

Published May 19, 2021 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1177 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.
Github GHSA Github GHSA GHSA-rc4q-9m69-gqp8 Lack of protection against cookie tossing attacks in fastify-csrf
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00268}

epss

{'score': 0.00254}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 3, 2024, 10:11 PM
Reserved
Mar 30, 2021, 12:00 AM
Status
Modified
Published
May 19, 2021, 10:15 PM
Modified
Jun 17, 2026, 3:48 AM