CVE-2025-32442
Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
Reported by github_m · Published April 18, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| fastify | fastify | 5.3.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| fastify | fastify | >= 5.0.0, < 5.3.2, = 4.29.0 |
| npm | fastify | 5.0.0, 4.29.0, 4.29.0 |
| fastify | fastify | 5.0.0, 4.29.0 |
Timeline
- Apr 18, 2025 CVE Published
- Apr 18, 2025 PoC Published
- Apr 19, 2025 EPSS Score (30 in total, the first dated here)
- May 9, 2025 Coalition ESS Score (30 in total, the first dated here)
- Dec 16, 2025 Security Advisory
- Jun 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-32442
vulnetix vdb fixes CVE-2025-32442
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-32442/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc x_refsource_CONFIRM
- https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418 x_refsource_MISC
- https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4 x_refsource_MISC
- https://hackerone.com/reports/3087928 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-32442 advisory
- https://github.com/advisories/GHSA-mg2h-6x62-wpwc advisory
- https://github.com/fastify/fastify url