{"id":"CVE-2025-32442","summary":"Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","details":"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.","aliases":["GHSA-mg2h-6x62-wpwc"],"modified":"2026-04-10T05:25:54.373809Z","published":"2025-04-18T15:59:06.670Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32442.json","cwe_ids":["CWE-1287"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://hackerone.com/reports/3087928"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32442.json"},{"type":"ADVISORY","url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32442"},{"type":"FIX","url":"https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418"},{"type":"FIX","url":"https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fastify/fastify","events":[{"introduced":"6bde7d7b0a51010d56df901cab9be5d9351b0d91"},{"fixed":"32f7e1eb97b638bad3ff8b80948e5b2c07d1b8b5"}],"database_specific":{"versions":[{"introduced":"5.0.0"},{"fixed":"5.3.2"}]}},{"type":"GIT","repo":"https://github.com/fastify/fastify","events":[{"introduced":"0"},{"last_affected":"3a6d4aeb241706fc9b71858281800a0cf193a308"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"= 4.29.0"}]}}],"versions":["4.16.0","4.16.1","4.16.2","4.16.3","4.17.0","v0.1.0","v0.10.0","v0.11.0","v0.11.1","v0.12.0","v0.13.0","v0.13.1","v0.14.0","v0.14.1","v0.15.0","v0.15.1","v0.15.2","v0.15.3","v0.16.0","v0.17.0","v0.18.0","v0.19.0","v0.19.1","v0.2.0","v0.20.0","v0.20.1","v0.21.0","v0.22.0","v0.23.0","v0.24.0","v0.25.0","v0.25.1","v0.25.2","v0.25.3","v0.26.0","v0.26.1","v0.26.2","v0.27.0","v0.28.0","v0.28.1","v0.28.2","v0.29.0","v0.29.1","v0.29.2","v0.3.0","v0.30.0","v0.30.1","v0.30.2","v0.30.3","v0.31.0","v0.32.0","v0.33.0","v0.34.0","v0.35.0","v0.35.1","v0.35.2","v0.35.3","v0.35.4","v0.35.5","v0.35.6","v0.35.7","v0.36.0","v0.37.0","v0.38.0","v0.39.0","v0.39.1","v0.4.0","v0.40.0","v0.41.0","v0.42.0","v0.43.0","v0.5.0","v0.6.0","v0.7.0","v0.7.1","v0.8.0","v0.9.0","v1.0.0","v1.0.0-rc.1","v1.0.0-rc.2","v1.0.0-rc.3","v1.1.0","v1.1.1","v1.10.0","v1.11.0","v1.11.1","v1.11.2","v1.12.0","v1.12.1","v1.13.0","v1.2.0","v1.2.1","v1.3.0","v1.3.1","v1.4.0","v1.5.0","v1.6.0","v1.7.0","v1.8.0","v1.9.0","v2.0.0","v2.0.0-rc.0","v2.0.0-rc.1","v2.0.0-rc.2","v2.0.0-rc.3","v2.0.0-rc.4","v2.0.0-rc.5","v2.0.0-rc.6","v2.0.1","v2.1.0","v2.14.0","v2.15.1","v2.2.0","v2.3.0","v3.0.0","v3.0.0-alpha.1","v3.0.0-rc.1","v3.0.0-rc.2","v3.0.0-rc.3","v3.0.0-rc.4","v3.0.0-rc.5","v3.0.1","v3.0.2","v3.0.3","v3.1.0","v3.1.1","v3.10.0","v3.10.1","v3.11.0","v3.12.0","v3.13.0","v3.14.0","v3.14.1","v3.14.2","v3.15.0","v3.15.1","v3.16.0","v3.16.1","v3.16.2","v3.17.0","v3.18.0","v3.18.1","v3.19.0","v3.19.1","v3.19.2","v3.2.0","v3.2.1","v3.20.0","v3.20.1","v3.20.2","v3.21.0","v3.21.1","v3.21.2","v3.21.3","v3.21.4","v3.21.5","v3.21.6","v3.22.0","v3.22.1","v3.23.0","v3.23.1","v3.24.0","v3.24.1","v3.25.0","v3.25.1","v3.25.2","v3.25.3","v3.26.0","v3.27.0","v3.27.1","v3.27.2","v3.3.0","v3.4.0","v3.4.1","v3.5.0","v3.5.1","v3.6.0","v3.7.0","v3.8.0","v3.9.0","v3.9.1","v3.9.2","v4.0.0","v4.0.0-alpha.1","v4.0.0-alpha.2","v4.0.0-alpha.3","v4.0.0-rc.1","v4.0.0-rc.2","v4.0.0-rc.3","v4.0.0-rc.4","v4.0.0-rc.5","v4.0.1","v4.0.2","v4.0.3","v4.1.0","v4.10.0","v4.10.1","v4.10.2","v4.11.0","v4.12.0","v4.13.0","v4.14.0","v4.14.1","v4.15.0","v4.16.0","v4.16.1","v4.16.2","v4.16.3","v4.17.0","v4.18.0","v4.19.0","v4.19.1","v4.19.2","v4.2.0","v4.2.1","v4.20.0","v4.21.0","v4.22.0","v4.22.1","v4.22.2","v4.23.0","v4.23.1","v4.23.2","v4.24.0","v4.24.1","v4.24.2","v4.24.3","v4.25.0","v4.25.1","v4.25.2","v4.26.0","v4.26.1","v4.26.2","v4.27.0","v4.28.0","v4.28.1","v4.29.0","v4.3.0","v4.4.0","v4.5.0","v4.5.1","v4.5.2","v4.5.3","v4.6.0","v4.7.0","v4.8.0","v4.8.1","v4.9.0","v4.9.1","v4.9.2","v5.0.0","v5.1.0","v5.2.0","v5.2.1","v5.2.2","v5.3.0","v5.3.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-32442.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}