CVE-2026-33806
Fastify 5.3.2 – 5.8.5
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-33806 is a high-severity Improper Validation of Specified Type of Input (CWE-1287) vulnerability in Fastify. Its CVSS base score is 7.5 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Masquerade File Type (T1036.008); ranked at the 36th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-33806 is a vulnerability in Fastify applications that utilize schema.body.content for per-content-type body validation. It allows attackers to entirely bypass schema validation by prepending a space to the Content-Type header, while the body is still parsed correctly. This issue is a regression introduced in Fastify versions 5.3.2 and later, stemming from the fix for CVE-2025-32442, and is classified under CWE-1287 with a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
Remote attackers require no privileges or user interaction to exploit this vulnerability over the network with low complexity. By crafting an HTTP request with a space-prepended Content-Type header, such as " application/json" instead of "application/json", they can bypass intended body validation schemas. This enables the processing of malformed or malicious payloads that would otherwise be rejected, leading to high integrity impacts such as improper data handling or injection of invalid content into the application.
Advisories from the Fastify GitHub security page (GHSA-mg2h-6x62-wpwc) and OpenJSF CNA recommend upgrading to Fastify v5.8.5 or later to mitigate the issue. No workarounds are available, emphasizing the need for prompt patching in affected applications.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-22818
Vulnerability Data
Impact: Fastify 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. This is a regression introduced in fastify…
more
>= 5.3.2 by the fix for CVE-2025-32442 Patches: Upgrade to fastify v5.8.5 or later. Workarounds: None. Upgrade to the patched version.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V5.2.2V9.1.3V10.4.6V1.1.1
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
SI-10 directly requires validation of information inputs, which structurally prevents type-validation failures from being introduced or exploitable.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require proper input type validation during development.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect type-validation flaws but does not prevent them during development.
Training raises awareness of case-insensitivity, encoding equivalence and similar gotchas (the XSS example in CWE-1289's own description is exactly the kind of pitfall secure-coding education addresses), but the defect is subtle and implementation-specific, so even well-trained developers miss it; the effect is a minority one, consistent with A.6.3's other developer-introduced-weakness grades.
Secure coding standards directly require proper type validation of all external inputs.
A.8.30 carries secure design, coding and testing practice (8.25–8.29) into outsourced development, which reduces ordinary implementation-phase input-validation weaknesses like CWE-1287 in delivered code, but its effect depends on those other controls and is bounded by supplier practice, matching the clause's declared ceiling.
A.8.8's reach is disclosure-based (vulnerability scanning, published advisories, third-party library tracking); CWE-1287 is a first-party implementation defect whose bulk in custom code is never published as a CVE, so A.8.8 finds only the minority of instances that surface as advisories in third-party components or are caught by its penetration-testing component.