Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app with case-sensitive header rule
-
ExploitCraft request with restricted header
-
ExecutionHeader lowercased, bypasses propertyNames enum/const match
-
ImpactForbidden header reaches route handler
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
|
| Exploitation Conditions | Exploitable only when a fastify 5.12.2-5.12.5 application defines a route schema that validates headers via a propertyNames subschema whose enum or const header names are written in canonical (non-lowercase) casing, functioning as a header allow-list or deny-list. The lowercasing routine skips these nested enum/const names, so the rule never matches the already-lowercased incoming header. Limiting factors: applications that declare header names in lowercase are not affected; apps that do not use header allow/deny-list schemas at all are not affected; impact is confined to smuggling a single restricted header past validation (integrity only, no code execution, data disclosure, or availability loss). Default configurations without such case-sensitive header schemas are not vulnerable, which is why AC:H applies. |
| Impact | This is a genuinely low-priority issue despite being network-reachable and unauthenticated. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N) yields only 3.7 (Low), and every signal agrees: impact is limited to integrity (I:L, with C:N and A:N), and AC:H reflects that exploitation depends on a specific, non-default application configuration - a route schema whose header allow/deny-list is written in canonical (non-lowercase) casing inside a propertyNames enum/const. No EPSS score, CISA KEV listing, or public POC is present in the provided intelligence, so there is no public exploit identified at time of analysis and no evidence of active exploitation. There is no signal conflict to reconcile between exploitation feeds; the only notable inconsistency is in the metadata - the 'Information Disclosure' tag contradicts the CVSS impact profile (C:N, I:L) and the description, which explicitly states the flaw affects 'the integrity of request handling,' not confidentiality. Net: a real but narrow correctness/validation-bypass bug that matters only to apps using case-sensitive header schemas on fastify 5.12.2-5.12.5; it does not warrant emergency patching but should be rolled into normal dependency maintenance. |
| Exploit ScenarioDerived | An application on fastify 5.12.2-5.12.5 defines a route header schema that restricts or forbids a specific header (e.g. 'X-Internal-Auth' or 'X-Forwarded-For') using propertyNames with canonical casing. A remote unauthenticated attacker sends the forbidden header, which is lowercased on arrival and therefore never matches the non-lowercased rule, so it passes validation and reaches the handler. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
Header validation bypass in Fastify 5.12.2 through 5.12.5 can permit unauthenticated remote attackers to smuggle a forbidden header past route schema validation when an application uses a propertyNames subschema containing enum or const header names written in canonical casing. The flaw is low impact, with CVSS 3.7, and is limited to request integrity because the affected schemas are uncommon, default Fastify configurations are not vulnerable, and no public exploit identified at time of analysis. Upgrading to Fastify 5.12.6 or later resolves the issue by correctly lowercasing the nested header-name restrictions.
RemediationAI
Vendor-released patch: Fastify 5.12.6. Upgrade to Fastify 5.12.6 or later to correct the header-name lowercasing routine for propertyNames enum and const values. The vendor states there is no workaround other than upgrading, but as a temporary avoidance measure applications can rewrite all header names in affected propertyNames enum or const declarations to lowercase, which prevents the mismatch with Node.js's lowercased incoming headers; this requires a thorough schema audit and is not a substitute for the patched release. See the GitHub security advisory at https://github.com/fastify/fastify/security/advisories/GHSA-389g-gv7q-r4x8 and the OpenJS Foundation advisory page at https://cna.openjsf.org/security-advisories.html for vendor guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Fastify is a Node.js web framework that validates route headers using JSON Schema. The affected code lowercases header names declared in a route schema's properties so they match Node.js's lowercased incoming request headers, but it does not apply the same normalization to enum or const values nested inside a propertyNames subschema. This is an instance of CWE-178, improper handling of case sensitivity: because the schema rule retains canonical casing while the actual header name is lowercased, a propertyNames-based allow-list or deny-list can fail to match the header it was intended to restrict. The affected package is identified by CPE cpe:2.3:a:fastify:fastify:*:*:*:*:*:*:*:*, specifically versions 5.12.2 through 5.12.5; successful exploitation requires an application schema that uses this specific nested propertyNames pattern and does not declare the relevant header names in lowercase.
Know when Fastify gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Remote and unauthenticated (AV:N/PR:N) but requires a specific non-default case-sensitive header schema (AC:H); impact is a limited integrity bypass only (I:L, C:N/A:N).
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used across all req
A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to redirect
Fastify is a fast and low overhead web framework, for Node.js. Rated high severity (CVSS 7.5), this vulnerability is rem
Prototype pollution vulnerability in fastify-multipart < 1.0.5 allows an attacker to crash fastify applications parsing
Fastify node module before 0.38.0 is vulnerable to a denial-of-service attack by sending a request with "Content-Type: a
A denial of service vulnerability exists in Fastify v2.14.1 and v3.0.0-rc.4 that allows a malicious user to trigger reso
A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbit
Authorization bypass in the @fastify/express middleware-compatibility plugin (versions 4.0.6 and earlier) lets unauthent
Authentication bypass in @fastify/express v4.0.4 and earlier allows remote unauthenticated attackers to access protected
Middleware bypass in Fastify Express plugin (fastify/express) allows complete circumvention of authentication, authoriza
Fastify is a web framework with minimal overhead and plugin architecture. Rated high severity (CVSS 8.8), this vulnerabi
Authentication and authorization bypass in @fastify/middie (Node.js middleware library for Fastify) allows remote unauth
EUVD-2026-98697
NVD
CVE.org
EPSS
GitHub
Exploit-DB