CVE-2026-84428

High

Description

fastify versions before 5.12.2 implement the case-insensitive nature of HTTP header names by lowercasing names in a route's header schema before compiling it, but the transformation is incomplete: it lowercases the properties keys and the root-level required array, and does not lowercase the trigger and dependent names inside the JSON Schema Draft 7 dependencies keyword. Because Node stores request header names in lowercase, a canonical-case dependency such as requiring an authentication header whenever a privileged-mode header is present never matches, and the presence assertion is silently skipped. An unauthenticated remote client can therefore send the header that activates a privileged branch while omitting the header the dependency was meant to require, bypassing the conditional check. Users should upgrade to fastify 5.12.2 or later.

SeverityHigh
CVSS7.5
Exploit probability—
ProductFastify
PublishedSep 4, 2026
First seenSep 4, 2026
Weakness typeCWE-178CWE-178

How to fix

Update
  • fastify fastify5.12.2 or later
  • fastify5.12.2 or later

Affected products

ProductAffected versionsFixed in
fastify fastifyv < 5.12.25.12.2
fastifynpmv < 5.12.25.12.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.