{"id":"CVE-2026-33806","published":"2026-04-15T00:14:02Z","modified":"2026-07-15T01:06:02Z","title":"fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header","vendor":"fastify","product":"fastify","tier":"tail","description":{"text":"Impact:\n\nFastify applications using schema.body.content for per-content-type body validation can have validation bypassed entirely by prepending a space to the Content-Type header. The body is still parsed correctly but schema validation is skipped.\n\nThis is a regression introduced in fastify >= 5.3.2 by the fix for CVE-2025-32442\n\nPatches:\n\nUpgrade to fastify v5.8.5 or later.\n\nWorkarounds:\n\nNone. Upgrade to the patched version.","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.00504,"percentile":0.36149,"provenance":"source"},"cwes":[{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input"},{"id":"CWE-1289","name":"Improper Validation of Unsafe Equivalence in Input"}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-33806","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2458596","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33806.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":7.23},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"fastify","versions":[">= 5.3.2, < 5.8.5"]}],"fixedVersions":[{"vendor":"fastify","product":"fastify","versions":["5.8.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-15T14:02:12.644507Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fastify","vulnerableRanges":[">=5.3.2, <5.8.5"],"patched":["5.8.5"],"from":["GHSA-247c-9743-5963"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-22818","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fastify-cve-2025-32442","parents":[{"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-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},{"cve":"CVE-2026-3635","published":"2026-03-23","fixed":"5.8.3","kev":false,"link":{"from":"CVE-2026-3635","to":"CVE-2026-33806","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fastify","fromFixed":"5.8.3","toFixed":"5.8.5","daysApart":23}]}},{"cve":"CVE-2026-33806","published":"2026-04-15","fixed":"5.8.5","kev":false},{"cve":"CVE-2026-16732","published":"2026-08-18","fixed":"5.12.1","kev":false,"link":{"from":"CVE-2026-33806","to":"CVE-2026-16732","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fastify","fromFixed":"5.8.5","toFixed":"5.12.1","daysApart":125}]}},{"cve":"CVE-2026-18504","published":"2026-08-18","fixed":"5.12.1","kev":false,"link":{"from":"CVE-2026-33806","to":"CVE-2026-18504","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fastify","fromFixed":"5.8.5","toFixed":"5.12.1","daysApart":125},{"kind":"same-code","provenance":"machine","files":["lib/validation.js"],"commits":["https://github.com/fastify/fastify/commit/1ef8a60c87e94f42f666aa15ad68957772a83655","https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4"],"basis":"shared file"}]}},{"cve":"CVE-2026-76169","published":"2026-09-04","fixed":"5.12.2","kev":false}],"package":"npm:fastify"}}