← Terug naar overzicht

A critical validation bypass vulnerability exists in Fastify versions before 5.12.2. The framework incorrectly evaluates JSON Schema Draft 7 boolean false schemas using JavaScript truthiness, causing it to treat a false schema (intended to deny all input) as a missing schema. As a result, no validator is compiled and the route handler executes on any incoming request. An unauthenticated remote attacker can exploit this to reach handlers that should be completely unreachable, potentially causing unauthorized state changes or execution of disabled operations. The root cause is a mismatch between JavaScript's falsy evaluation and JSON Schema's definition of false as a valid schema that rejects all instances. All four schema types are affected: body, querystring, params, and headers. The fix is to upgrade to Fastify 5.12.2 or later.

Affected products

  • Fastify

Related CVE's

  • CVE-2026-84469

Categories

  • Web Technologies
  • Zero-Day Vulnerabilities