Skip to main content
← All vulnerabilities
CVE-2026-33806GHSA-MG2H-6X62-WPWCGHSA-247C-9743-5963

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.8.5, 5.3.2, 4.29.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • fastify fastify

    From 5.3.2 · fixed in 5.8.5

  • fastifynpm

    From 5.0.0 · fixed in 5.3.2

  • fastifynpm

    From 4.29.0 · fixed in 4.29.1

  • fastifynpm

    From 5.3.2 · fixed in 5.8.5

References 2

GitHub · fastify/fastify

cna.openjsf.org