Improper Validation of Unsafe Equivalence in Input Affecting fastify package, versions <5.12.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTIFY-19639042
  • published7 Sept 2026
  • disclosed4 Sept 2026
  • creditschecthellraiser606

Introduced: 4 Sep 2026

NewCVE-2026-84428  (opens in a new tab)
CWE-1289  (opens in a new tab)

How to fix?

Upgrade fastify to version 5.12.2 or higher.

Overview

fastify is an overhead web framework, for Node.js.

Affected versions of this package are vulnerable to Improper Validation of Unsafe Equivalence in Input due to incomplete schema case normalization in lib/validation.js when compiling header schemas. An attacker can bypass schema-enforced header dependencies by sending canonical-cased header names in a request while omitting the dependent header the schema is meant to require. Because Node.js stores request headers in lowercase, Fastify’s shallow normalization missed dependencies and nested subschemas, so assertions such as requiring X-Admin-Token when X-Admin is present never matched the incoming request headers. This lets a remote client reach privileged header-gated routes or actions without supplying the full set of headers the application intended to enforce.

Workarounds

  • Inline the header schema instead of referencing it with an external $ref, so header names can be case-normalized and case-insensitive assertions like required and dependencies still apply.

CVSS Base Scores

version 4.0
version 3.1