# CVE-2025-32442: Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-18T15:02:41.000Z
- Modified: 2026-07-08T08:11:12.813Z
- Also known as: GHSA-247c-9743-5963, GHSA-mg2h-6x62-wpwc
- Related: CVE-2026-33806
- Weaknesses: CWE-1287
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- fastify fastify: >= 5.0.0, < 5.3.2; = 4.29.0; from 5.0.0 before 5.3.2; 4.29.0
- fastify (npm): from 5.3.2 before 5.8.5; from 5.0.0 before 5.3.2; from 4.29.0 before 4.29.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc> (exploit, third-party-advisory, web)
- <https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418> (patch, web)
- <https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4> (patch, web)
- <https://hackerone.com/reports/3087928> (permissions-required, web)
- <https://github.com/fastify/fastify/security/advisories/GHSA-247c-9743-5963> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-32442> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33806> (advisory)
- <https://cna.openjsf.org/security-advisories.html> (web)
- <https://github.com/fastify/fastify> (package)
- <https://github.com/fastify/fastify/releases/tag/v5.8.5> (web)

## Sources

- CVE List: [CVE-2025-32442](https://www.cve.org/CVERecord?id=CVE-2025-32442), CVE Terms of Use, modified 2025-08-22
- GitHub Advisory Database: [GHSA-247c-9743-5963](https://github.com/advisories/GHSA-247c-9743-5963), CC-BY-4.0, modified 2026-07-08
- GitHub Advisory Database: [GHSA-mg2h-6x62-wpwc](https://github.com/advisories/GHSA-mg2h-6x62-wpwc), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2025-32442](https://nvd.nist.gov/vuln/detail/CVE-2025-32442), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-32442 · Whole record: https://cve.day/CVE-2025-32442.json · Rebuilt by cve.day 2026-11-25T22:58:56.775Z
