{"id":"CVE-2025-32442","state":"PUBLISHED","title":"Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","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.","publishedAt":"2025-04-18T15:59:06.670Z","updatedAt":"2025-08-22T20:50:43.059Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["fastify fastify"],"affected":[{"vendor":"fastify","product":"fastify","versions":[{"version":">= 5.0.0, < 5.3.2","status":"affected"},{"version":"= 4.29.0","status":"affected"}]}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc","https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418","https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4","https://hackerone.com/reports/3087928"],"weaknesses":["CWE-1287"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/32xxx/CVE-2025-32442.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-32442","state":"PUBLISHED","datePublished":"2025-04-18T15:59:06.670Z","dateUpdated":"2025-08-22T20:50:43.059Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-04-08T10:54:58.369Z"},"containers":{"cna":{"title":"Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"fastify","product":"fastify","versions":[{"version":">= 5.0.0, < 5.3.2","status":"affected"},{"version":"= 4.29.0","status":"affected"}]}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc","name":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418","name":"https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418","tags":["x_refsource_MISC"]},{"url":"https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4","name":"https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4","tags":["x_refsource_MISC"]},{"url":"https://hackerone.com/reports/3087928","name":"https://hackerone.com/reports/3087928","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1287","lang":"en","description":"CWE-1287: Improper Validation of Specified Type of Input","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-08-22T20:50:43.059Z"},"source":{"advisory":"GHSA-mg2h-6x62-wpwc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-21T13:28:27.299500Z","id":"CVE-2025-32442","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-21T13:29:14.448Z"}}]}}}