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.
Published: 2026-10-13
Score: 3.7 Low
EPSS: n/a
KEV: No
Impact: Integrity Compromise
Action: Apply Patch
AI Analysis

Impact

The vulnerability resides in the header‑name parsing logic of the Fastify web framework. In versions 5.12.2 to 5.12.5, the routine that converts declared header names to lowercase fails to process enum or const names nested inside a propertyNames schema. Consequently, a header allow‑list or deny‑list defined with canonical casing never matches the automatically lowercased incoming header, permitting a forbidden header to pass validation. The result is that an attacker can inject a header that the application logic was intended to block, compromising the integrity of request handling.

Affected Systems

Node.js applications that use the fastify:fastify framework, specifically versions 5.12.2, 5.12.3, 5.12.4 and 5.12.5, are impacted. Any route that relies on Fastify’s schema‑based header validation will be affected. Upgrading to 5.12.6 or later resolves the issue.

Risk and Exploitability

The CVSS score of 3.7 denotes low severity, and the EPSS score is unavailable, indicating a modest exploit probability. The vulnerability is not presently listed in CISA’s KEV catalog. Attackers would need to send crafted HTTP requests containing the mismatched headers; the flaw is accessible over the network, so the attack vector is remote. While the risk is limited to request‑handling integrity, a successful bypass could undermine application logic that depends on strict header filtering.

Generated by OpenCVE AI on October 13, 2026 at 14:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Fastify framework to version 5.12.6 or later.
  • If an upgrade cannot be applied immediately, revise any schema definitions that use nested propertyNames subschemas by declaring header names in lowercase to prevent the casing mismatch.
  • Review all route schemas that enumerate header names and update any that rely on the older case‑sensitive logic so that they align with the corrected behavior.

Generated by OpenCVE AI on October 13, 2026 at 14:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Fastify
Fastify fastify
Vendors & Products Fastify
Fastify fastify

Tue, 13 Oct 2026 13:45:00 +0000

Type Values Removed Values Added
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.
Title fastify vulnerable to header validation bypass via case-sensitive propertyNames
Weaknesses CWE-178
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-10-13T13:23:24.217Z

Reserved: 2026-10-08T21:50:49.357Z

Link: CVE-2026-107832

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-13T14:17:19.167

Modified: 2026-10-13T14:17:19.167

Link: CVE-2026-107832

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T14:45:10Z

Weaknesses
  • CWE-178

    Improper Handling of Case Sensitivity