Improper Handling of Case Sensitivity Affecting fastify package, versions >=5.12.2 <5.12.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (17th 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-20883333
  • published13 Oct 2026
  • disclosed13 Oct 2026
  • creditUttej Badwane, kian0417

Introduced: 13 Oct 2026

NewCVE-2026-107832  (opens in a new tab)
CWE-178  (opens in a new tab)

How to fix?

Upgrade fastify to version 5.12.6 or higher.

Overview

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

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity via the lowerCaseHeadersSchema function in lib/validation.js, when a headers schema uses propertyNames with an enum or const constraint. Because header name values inside propertyNames were not lowercased during schema normalization, an attacker can bypass header validation by supplying header names in mixed or upper case that match the enum/const values as authored but not as normalized, causing the validation to incorrectly reject or accept requests.

CVSS Base Scores

version 4.0
version 3.1