{"id":"CVE-2025-32442","published":"2025-04-18T15:59:06Z","modified":"2025-08-22T20:50:43Z","title":"Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","vendor":"fastify","product":"fastify","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01159,"percentile":0.66898,"provenance":"source"},"cwes":[{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input"}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418","tags":["x_refsource_MISC"]},{"url":"https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4","tags":["x_refsource_MISC"]},{"url":"https://hackerone.com/reports/3087928","tags":["x_refsource_MISC"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":13.38},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"fastify","versions":[">= 5.0.0, < 5.3.2","= 4.29.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-21T13:28:27.299500Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fastify","vulnerableRanges":[">=5.0.0, <5.3.2",">=4.29.0, <4.29.1"],"patched":["5.3.2","4.29.1"],"from":["GHSA-mg2h-6x62-wpwc"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-11842","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fastify-cve-2025-32442","children":[{"from":"CVE-2025-32442","to":"CVE-2026-33806","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"This is a regression introduced in fastify >= 5.3.2 by the fix for CVE-2025-32442","from":"CVE.org","in":"CVE-2026-33806"},{"kind":"osv-related","provenance":"source","id":"GHSA-mg2h-6x62-wpwc","via":"reference","url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc"},{"kind":"osv-related","provenance":"source","id":"GHSA-247c-9743-5963","via":"reference","url":"https://github.com/fastify/fastify/security/advisories/GHSA-247c-9743-5963"}]}],"packageHistory":[{"cve":"CVE-2020-8192","published":"2020-07-30","fixed":"2.15.1","kev":false},{"cve":"CVE-2022-39288","published":"2022-10-10","fixed":"4.8.1","kev":false},{"cve":"CVE-2022-41919","published":"2022-11-22","fixed":"4.10.2","kev":false},{"cve":"CVE-2025-32442","published":"2025-04-18","fixed":"5.3.2","kev":false},{"cve":"CVE-2026-25223","published":"2026-02-03","fixed":"5.7.2","kev":false,"link":{"from":"CVE-2025-32442","to":"CVE-2026-25223","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fastify","fromFixed":"5.3.2","toFixed":"5.7.2","daysApart":291}]}},{"cve":"CVE-2026-25224","published":"2026-02-03","fixed":"5.7.3","kev":false},{"cve":"CVE-2026-3419","published":"2026-03-06","fixed":"5.8.1","kev":false}],"package":"npm:fastify"}}