CVE-2026-107832

fastify vulnerable to header validation bypass via case-sensitive propertyNames

State
Published
Severity
3.7 Low
Published
Oct 13, 2026
Updated
Oct 15, 2026
Reserved
Oct 8, 2026

Read the record on cve.org

Description

fastify is a fast and low overhead web framework for Node.js. In versions 5.12.2 through 5.12.5, the routine that lowercases header names declared in a route schema does not lowercase the enum or const header names nested inside a propertyNames subschema. As a result, a header allow-list or deny-list written with canonical (non-lowercase) casing never matches the incoming lowercased header, so a restricted header passes validation and reaches the route handler. An attacker can therefore bypass a case-sensitive header validation rule and smuggle a forbidden header past the schema, affecting the integrity of request handling. The issue is fixed in fastify 5.12.6, and users should upgrade to 5.12.6 or later. There is no workaround other than upgrading, though applications can declare header names in lowercase to avoid the mismatch.

Scores

CVSSScoreVectorSource
3.13.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:Nopenjs

Weaknesses

  • CWE-178 Improper Handling of Case Sensitivity

Affected Products

ProductVersions
fastifyfastify
  • 5.12.2 to before 5.12.6Affected
  • 5.12.6Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.