CVE-2025-32442 json
Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
published 2025-04-18 18 mo ago modified 2026-07-08 4 mo ago also CVE-2026-33806 , EUVD-2025-11842 , GHSA-247c-9743-5963 , GHSA-mg2h-6x62-wpwc
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm fastify 4.29.1, 5.3.2, 5.8.5
- fastify fastify 4.29.1, 5.3.2
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-32442 updated cvss 7.5
Fastify: Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
-
Red Hat OpenShift Serverless openshift-serverless-1/kn-plugin-func-func-util-rhel8 Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.73% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | fastify | >=5.3.2, <5.8.5 >=5.0.0, <5.3.2 >=4.29.0, <4.29.1 |
5.8.5 5.3.2 4.29.1 |
Affected products
- fastify fastify
Classification
- Weakness
-
- CWE-1287 Improper Validation of Specified Type of Input
References
-
github.com
/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418
web, patch
-
github.com
/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4
web, patch
-
github.com
/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc
web, exploit, third-party-advisory
-
hackerone.com
/reports/3087928
web, permissions-required
-
github.com
/fastify/fastify/security/advisories/GHSA-247c-9743-5963
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-32442
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-33806
advisory
-
cna.openjsf.org
/security-advisories.html
web
-
github.com
/fastify/fastify
package
-
github.com
/fastify/fastify/releases/tag/v5.8.5
web
Sources
- CVE List CVE-2025-32442
- GitHub Advisory GHSA-247c-9743-5963
- GitHub Advisory GHSA-mg2h-6x62-wpwc
- NVD CVE-2025-32442
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.