{"cve":"CVE-2025-32442","nvd":{"published":"2025-04-18T16:15:23.327","modified":"2026-06-17T09:12:00.070","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-1287"],"references":["https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418","https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4","https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc","https://hackerone.com/reports/3087928"],"products":["fastify:fastify"],"source":"nvd","synced_at":"2026-10-19T22:01:11.054312287+00:00"},"epss":{"cve":"CVE-2025-32442","score":0.00729,"percentile":0.54261,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-247c-9743-5963","url":"https://osv.dev/vulnerability/GHSA-247c-9743-5963","summary":"Fastify has a Body Schema Validation Bypass via Leading Space in Content-Type Header","modified":"2026-07-08T08:11:12.813453393Z","packages":[{"ecosystem":"npm","name":"fastify","purl":"pkg:npm/fastify","ranges":[">=5.3.2 <5.8.5"],"fixed":["5.8.5"]}]},{"id":"GHSA-mg2h-6x62-wpwc","url":"https://osv.dev/vulnerability/GHSA-mg2h-6x62-wpwc","summary":"Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","modified":"2026-07-08T08:11:12.813453393Z","packages":[{"ecosystem":"npm","name":"fastify","purl":"pkg:npm/fastify","ranges":[">=5.0.0 <5.3.2"],"fixed":["5.3.2"]},{"ecosystem":"npm","name":"fastify","purl":"pkg:npm/fastify","ranges":[">=4.29.0 <4.29.1"],"fixed":["4.29.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}