CVE-2026-33806: fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header
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 >= 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.
Security readout for executives and security teams
Plain-English summary
Fastify can parse a request body while skipping the intended body validation when the Content-Type header is malformed with a leading space. For affected APIs, this can let invalid or unexpected input reach business logic, creating integrity risk in exposed services.
Executive priority
Treat as high priority for exposed APIs using Fastify body schema validation. The fix is a direct dependency upgrade, and delaying leaves business logic dependent on validation that may be bypassed.
Technical view
CVE-2026-33806 affects Fastify versions from 5.3.2 before 5.8.5 when applications use schema.body.content for per-content-type validation. A leading space in Content-Type can bypass validation while parsing still occurs. The issue is a regression from the CVE-2025-32442 fix.
Likely exposure
Exposure is most likely in Node.js services running affected Fastify 5.x versions, especially public APIs that depend on schema.body.content to enforce JSON or other body validation.
Exploitation context
The source bundle reports network exploitable, low-complexity, unauthenticated impact on integrity. KEV is false, and no provided source states active exploitation. Evidence supports validation bypass risk, not confirmed exploitation in the wild.
Researcher notes
Focus analysis on schema.body.content behavior and affected Fastify 5.x dependency ranges. The bundle names no workaround and no active exploitation. Avoid broad claims about all Fastify validation paths without vendor evidence.
Mitigation direction
Upgrade Fastify to v5.8.5 or later.
Prioritize internet-facing APIs using schema.body.content validation.
Update lockfiles and redeploy affected services.
Do not rely on workarounds; sources state none are available.
Track Fastify and OpenJS advisories for any follow-up guidance.
Validation and detection
Inventory deployed Fastify versions across applications and containers.
Identify routes using schema.body.content for request validation.
Confirm affected services are upgraded to Fastify v5.8.5 or later.
Run controlled regression tests for malformed Content-Type handling.
Review logs for rejected or anomalous Content-Type values.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-1287: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-1287 · source CWE mapping
Improper Validation of Specified Type of Input
Improper Validation of Specified Type of Input represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Validation of Unsafe Equivalence in Input
Improper Validation of Unsafe Equivalence in Input represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.