CVE-2025-32442
published high CVSS 3.1 · 7.5Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fastify | — | fastify>= 5.0.0, < 5.3.2 · = 4.29.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fastify | fastify | >= 5.0.0, < 5.3.2 (affected)= 4.29.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1287 CWE-1287: Improper Validation of Specified Type of Input
References
4Provider assertions
2GitHub_M · cna
Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b679dea980aaaf1f46146dc948376d3c94bc3eab2b93bb6960265e1f2b695bed
- Ingested
- 23 Sep 2026, 08:45:19 UTC
- Source record
- Official CVE record