CVE-2025-32442 in Fastify
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 casi...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Fastify | Fastify | 4.29.0 ≥ 5.0.0, < 5.3.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-32442 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-040625-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2025-04-18 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1287: CWE-1287
Analysis AI-written, not human-reviewed
Fastify versions 5.0.0 to 5.3.0 and 4.29.0 are vulnerable to a validation bypass issue due to improper handling of content types, allowing attackers to bypass validation by altering the content type header.
An attacker can exploit this vulnerability by sending a request with a content type header that has been slightly altered, such as using different casing or adding extra whitespace before the semicolon. This can lead to the bypass of validation rules that are supposed to enforce specific content types.
Questions
What is CVE-2025-32442?
Fastify versions 5.0.0 to 5.3.0 and 4.29.0 are vulnerable to a validation bypass issue due to improper handling of content types, allowing attackers to bypass validation by altering the content type header.
What is the CVSS score for CVE-2025-32442?
CVE-2025-32442 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 1.2%.
Is CVE-2025-32442 actively exploited?
No confirmed active exploitation of CVE-2025-32442 as of 2026-09-25.
How do I remediate CVE-2025-32442?
Priority: HIGH.
What systems are affected by CVE-2025-32442?
CVE-2025-32442 affects Fastify Fastify.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Fastify","product":"Fastify","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.