High severity · published Nov 22, 2022
CVE-2022-41919
Fastify is a web framework with minimal overhead and plugin architecture
8.8
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 34% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FA
Fastify · Fastify
3.0.0 before 3.29.4; 4.0.0 before 4.10.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-41919
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-41919
Patch
https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9
Third Party Advisory
https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh
www.npmjs.com
https://www.npmjs.com/package/%40fastify/csrf
More from Fastify
8.1
CVE-2026-84504
fastify vulnerable to request body replacement via an async validation result collision
7.5
CVE-2026-84428
fastify vulnerable to header validation bypass via incomplete schema case normalization
7.5
CVE-2026-84469
fastify vulnerable to request validation bypass via skipped boolean false schemas
7.5
CVE-2026-76169
fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers
7.5
CVE-2026-33806
fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header
