Skip to content
Heist/ feed
Low

fastify vulnerable to header validation bypass via case-sensitive propertyNames

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-107832

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-107832

fastify

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "fastify",
    "product": "fastify",
    "versions": [
      {
        "status": "affected",
        "version": "5.12.2",
        "lessThan": "5.12.6",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.12.6",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:npm/fastify",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-107832

Source reference: /cveMetadata/cveId

Publisher severity

low

Source reference: /containers/cna/metrics

Event
#30092 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement