Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. fastify
  4. ›
  5. CVE-2026-107832

CVE-2026-107832: fastify is vulnerable to header validation bypass via case-sensitive propertyNames

October 22, 2026

Fastify lowercases header names in a headers schema before compilation, because Node.js stores request header names in lowercase. This normalization does not reach the header names held in a propertyNames subschema’s enum and const. A header-name deny-list written in the canonical header case, such as propertyNames: { not: { enum: ['X-Debug-Override'] } }, therefore never matches the lowercased request headers, and the forbidden header reaches the handler. Any application that uses a propertyNames deny-list or allow-list to constrain request header names does not get the constraint it expects. The same rule written in lowercase works, and the not: { required: [...] } form is unaffected, so this is a gap in the built-in normalization rather than a wrong schema. This is an incomplete fix of CVE-2026-84428 (GHSA-9q9j-q6p8-xq58), whose normalization covered header names used as property keys but not those used as values inside propertyNames.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-389g-gv7q-r4x8
  • github.com/fastify/fastify/commit/3241fbd2f10a8ca1503533726836b53b6e8775a2
  • github.com/fastify/fastify/commit/35c32375731c111439682b2f9e6e0baed2694269
  • github.com/fastify/fastify/pull/7104
  • github.com/fastify/fastify/releases/tag/v5.12.6
  • github.com/fastify/fastify/security/advisories/GHSA-389g-gv7q-r4x8
  • nvd.nist.gov/vuln/detail/CVE-2026-107832

Code Behaviors & Features

Detect and mitigate CVE-2026-107832 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.12.2 before 5.12.6

Fixed versions

  • 5.12.6

Solution

Upgrade to version 5.12.6 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-178: Improper Handling of Case Sensitivity

Source file

npm/fastify/CVE-2026-107832.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:26 +0000.