7.5High

CVE-2026-33806fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header

fastify fastify; Red Hat Red Hat Enterprise Linux AI (RHEL AI) 3; Red Hat Red Hat OpenShift AI (RHOAI); Red Hat Red Hat OpenShift Dev Spaces Published: (7 months ago)

Description

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.

Weakness (CWE): CWE-1287CWE-1289

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
fastify fastify 5.3.2 – < 5.8.5, fixed 5.8.5
Red Hat Red Hat Enterprise Linux AI (RHEL AI) 3 —
Red Hat Red Hat OpenShift AI (RHOAI) —
Red Hat Red Hat OpenShift Dev Spaces —

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:* ≥ 5.3.2 < 5.8.5