#VU125980 Improper Validation of Specified Type of Input in Fastify - CVE-2026-33806
Published: April 14, 2026
Fastify
fastify.io
Description
The vulnerability allows a remote attacker to bypass body schema validation.
The vulnerability exists due to improper validation of specified type of input in schema.body.content validation in lib/validation.js when processing requests with a Content-Type header prefixed by a leading space. A remote attacker can send a specially crafted request to bypass body schema validation.
The issue is caused by a parser-validator differential where the body is still parsed correctly after leading whitespace is trimmed, but validator lookup uses an empty media type and skips validation.