Skip to content
OpenAdvisories
High · 7.5 CVE-2026-33806 EUVD-2026-22818GHSA-247c-9743-5963

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

Published Apr 15, 2026 · Updated Jul 15, 2026 · Assigned by openjs

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.

Affected products

VendorProductAffectedFixed
fastify fastify 5.3.2 – < 5.8.5 5.8.5

References