CVE-2025-32442 Details
Description
Fastify is a fast and low overhead web framework, for Node.js. In versions 5.0.0 to 5.3.0 as well as version 4.29.0, applications that specify different validation strategies for different content types have a possibility to bypass validation by providing a _slightly altered_ content type such as with different casing or altered whitespacing before `;`. This was patched in v5.3.1, but the initial patch did not cover all problems. This has been fully patched in v5.3.2 and v4.29.1. A workaround involves not specifying individual content types in the schema.
A vulnerability in Fastify, a web framework for Node.js, allows for validation bypass in applications that use different validation strategies for various content types. This issue is present in Fastify versions 5.0.0 through 5.3.0 and in version 4.9.0. The vulnerability arises from the framework's content-type parsing, which can be manipulated by altering the casing or adding whitespace before the semicolon. As a result, requests can bypass validation and potentially lead to incorrect handling of the request body.
Users can upgrade to Fastify versions 5.3.2 or 4.9.1, where this vulnerability has been fully patched. Alternatively, as a temporary workaround, avoid specifying multiple content types in the schema.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1287 | Improper Validation of Specified Type of Input | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| fastify fastify | >= 5.0.0, < 5.3.2 4.29.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 22, 2025 | CVE Modified | [email protected] |
| Jun 24, 2025 | Initial Analysis | [email protected] |
| Apr 28, 2025 | CVE Modified | [email protected] |
| Apr 18, 2025 | CVE Modified | [email protected] |
| Apr 18, 2025 | New CVE Received | [email protected] |