Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. fastify
  4. ›
  5. CVE-2026-33806

CVE-2026-33806: Fastify has a Body Schema Validation Bypass via Leading Space in Content-Type Header

April 15, 2026 (updated April 24, 2026)

A validation bypass vulnerability exists in Fastify v5.x where request body validation schemas specified via schema.body.content can be completely circumvented by prepending a single space character (\x20) to the Content-Type header. The body is still parsed correctly as JSON (or any other content type), but schema validation is entirely skipped. This is a regression introduced by commit f3d2bcb (fix for CVE-2025-32442).

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-247c-9743-5963
  • github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4
  • github.com/fastify/fastify/releases/tag/v5.8.5
  • github.com/fastify/fastify/security/advisories/GHSA-247c-9743-5963
  • github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc
  • nvd.nist.gov/vuln/detail/CVE-2025-32442
  • nvd.nist.gov/vuln/detail/CVE-2026-33806

Code Behaviors & Features

Detect and mitigate CVE-2026-33806 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.3.2 before 5.8.5

Fixed versions

  • 5.8.5

Solution

Upgrade to version 5.8.5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-1287: Improper Validation of Specified Type of Input

Source file

npm/fastify/CVE-2026-33806.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:47 +0000.