Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2022-41919
November 22, 2022
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'.
Affected Packages
fastify (CDN_JS):
Affected version(s) >=3.0.0 <3.29.4
Fix Suggestion:
Update to version 3.29.4
fastify (CDN_JS):
Affected version(s) >=4.0.0 <4.10.2
Fix Suggestion:
Update to version 4.10.2
fastify (NPM):
Affected version(s) >=4.0.0 <4.10.2
Fix Suggestion:
Update to version 4.10.2
fastify (NPM):
Affected version(s) >=3.0.0 <3.29.4
Fix Suggestion:
Update to version 3.29.4
Additional Notes
The description of this vulnerability differs from MITRE.
Do you need more information?
Contact Us
CVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Cross-Site Request Forgery (CSRF)
EPSS
Base Score:
0.17