CVE-2022-41919: fastify Cross-Site Request Forgery (CSRF)
Vulnerability summary
CVE-2022-41919 is a high (CVSS 8.8) Cross-Site Request Forgery (CSRF) vulnerability in fastify. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 32.8% of scored vulnerabilities.
Timeline
- 22-11-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
Fastify is a web framework with minimal overhead and plugin architecture. The attacker can use the incorrect `Content-Type` to bypass the `Pre-Flight` checking of `fetch`. `fetch()` requests with Content-Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could potentially be used to invoke routes that only accepts `application/json` content type, thus bypassing any CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack. This issue has been patched in version 4.10.2 and 3.29.4. As a workaround, implement Cross-Site Request Forgery protection using `@fastify/csrf'.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
- OSV · NpmEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.40%
Chance of exploitation in the next 30 days
Percentile
33%
Versus all other CVEs
30-day change
+0.01 pp
From 0.39% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Fastify1 product
- fastify≥ 3.0.0, < 3.29.4 | ≥ 4.0.0, < 4.10.2
Npm1 product
- fastify≥ 4.0.0, < 4.10.2 | ≥ 3.0.0, < 3.29.4
2 vendors · 2 products
References
6 links- github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9WEBPatchThird Party Advisory
- github.com/fastify/fastifyPACKAGE