Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Fastify app on case-insensitive host
-
DeliveryLocate guard-protected static path
-
ExploitRequest path with altered letter case
-
ExecutionRoute matcher misses, falls to static handler
-
PersistFilesystem resolves aliased path
-
ImpactProtected file contents disclosed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
|
| Exploitation Conditions | Exploitation requires three concrete conditions to all hold: (1) the @fastify/static plugin at a version before 10.1.4; (2) the server runs on a case-insensitive filesystem - specifically Windows, or the default (case-insensitive) macOS APFS volume - the flaw does NOT affect case-sensitive Linux filesystems; and (3) the application relies on a route guard or an allowedPath restriction to protect specific files under the static root. Given all three, an unauthenticated remote attacker simply alters the letter case of a protected path segment (e.g. '/Admin/secret' instead of '/admin/secret') so the case-sensitive route matcher misses the guard while the case-insensitive filesystem still resolves the same file. The primary limiting factor is the filesystem: production Node.js typically runs on case-sensitive Linux, where this is not exploitable. |
| Impact | This is a genuine but moderate-severity confidentiality issue, correctly rated 5.3 (Medium). The vendor CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N indicates network-reachable, unauthenticated exploitation with no user interaction, but impact is limited to reading a single protected file (C:L, no integrity or availability impact). No EPSS score, no CISA KEV listing, and no public POC were provided in the intelligence - exploitation status is 'no public exploit identified at time of analysis'. SSVC framework inputs were not supplied. The key limiting factor NOT captured in the raw CVSS score is that exploitation requires the server to run on a case-insensitive filesystem (Windows or the default macOS volume) AND to have a route guard or allowedPath restriction configured; Linux/case-sensitive deployments - which dominate production Node.js hosting - are entirely unaffected. The AC:L rating is arguably optimistic given this deployment precondition, though for an actually-vulnerable host the request itself is trivial. Net: a real, patch-worthy issue for Windows/macOS-hosted Fastify apps relying on route-guard authorization, but not a widespread emergency. |
| Exploit ScenarioDerived | A Fastify application running on Windows (or default macOS) serves static files behind a route guard that restricts access to '/admin/secret.json'. An unauthenticated attacker requests '/Admin/secret.json' (or '/admin/Secret.json'); the case-sensitive route matcher fails to match the guarded route so the request falls through to the static handler, but the case-insensitive filesystem resolves it to the same protected file, returning its contents. No public exploit code was identified in the provided intelligence. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Authorization bypass in @fastify/static before 10.1.4 lets an unauthenticated remote attacker read files that a route guard or allowedPath rule was meant to protect, but only when the server runs on a case-insensitive filesystem such as Windows or a default macOS APFS volume. The plugin's route matcher is case-sensitive while the underlying filesystem is not, so requesting a protected segment with altered letter case (for example '/Admin/secret' instead of '/admin/secret') misses the guard and still resolves to the same on-disk file; CVSS 3.1 rates this 5.3 (Medium) with AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, reflecting a confidentiality-only impact limited to files inside the configured static root. This is not a directory traversal and it does not affect case-sensitive Linux deployments, where most Node.js production workloads run; no public exploit code and no confirmed active exploitation (CISA KEV) were identified at time of analysis.
RemediationAI
Vendor-released patch: 10.1.4. Upgrade @fastify/static to 10.1.4 or later, which validates the requested path against its actual on-disk spelling and rejects case-aliased paths before authorization runs; this closes the bypass without configuration changes and is the only complete fix, so treat it as the primary action and verify the resolved dependency version in your lockfile, since a transitive pin can silently hold the vulnerable release. If immediate upgrade is not possible, the workaround with the fewest side effects is to serve static content from a case-sensitive filesystem - a case-sensitive APFS volume on macOS, or a Linux container/host - which removes the aliasing that makes the bypass possible, at the cost of potential case-related breakage in existing app content or deployment tooling. The alternative workaround is to enumerate and register every letter-case permutation of each protected path in the route guard and allowedPath rules; this is brittle, scales combinatorially with path depth, and is easy to regress, so treat it as temporary. Patching mitigates the issue entirely; there is no way to disable the affected behavior short of upgrading or changing the filesystem, and blocking ports or network filtering does not help because the requests are ordinary, well-formed static requests. Consult the advisory at https://github.com/fastify/fastify-static/security/advisories/GHSA-r799-r9gc-m956 and the OpenJS CNA listing at https://cna.openjsf.org/security-advisories.html for vendor confirmation and any updates.
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
The flaw is rooted in CWE-178 (Improper Handling of Case Sensitivity) within @fastify/static, the official Fastify plugin that serves static assets from a configured root directory. Fastify resolves incoming request paths through a case-sensitive router, and applications commonly layer that router with authorization hooks or allowedPath options to gate specific files. On case-insensitive filesystems - Windows NTFS and the default (case-insensitive) macOS APFS volume - the OS itself canonicalizes path lookups, so '/ADMIN/secret' and '/admin/secret' designate the same file. Because the router's comparison is byte-exact, a case-mutated path fails to match the guarded route and falls through to the generic static handler, which opens the file successfully. Crucially, path resolution still occurs beneath the configured static root, so this is an authorization-bypass class issue rather than a traversal (CWE-22) primitive - nothing outside the root is reachable. The CVSS vector PR:N/AC:L confirms the bypass is reachable without credentials and without special conditions once the filesystem and configuration prerequisites are met, while C:L reflects that only confidentiality is affected. The upstream fix in 10.1.4 adds validation of the requested path against its actual on-disk spelling, rejecting case-aliased paths before authorization is evaluated.
Know when Fastify Static 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:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Unauthenticated network request with trivial case-alteration (AV:N/AC:L/PR:N/UI:N); impact limited to reading one guard-protected file so C:L, I:N, A:N, no scope change.
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
2DescriptionCVE.org
@fastify/static is a Fastify plugin that serves static files from a configured root directory. In versions before 10.1.4, on a case-insensitive filesystem such as Windows or the default macOS volume, a route guard or allowedPath restriction can be bypassed by altering the letter case of a path segment. The route matcher is case-sensitive while the filesystem is not, so a request that changes the case of a protected segment does not match the guarded route and falls through to the static handler, yet the filesystem resolves it to the same protected file. As a result, an unauthenticated request can read a file that a route guard or allowedPath was configured to protect. The issue does not affect case-sensitive filesystems and is not a directory traversal, since nothing is served from outside the configured root. The issue is fixed in @fastify/static 10.1.4, which validates the requested path against its actual on-disk spelling and rejects case-aliased paths before authorization. As a workaround, serve static files from a case-sensitive filesystem, or ensure route guards and allowedPath rules account for every letter-case variant of the protected paths.
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
More in Fastify Static
View allA redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to redirect
A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbit
Path-traversal-based middleware bypass in @fastify/static versions up to and including 10.1.0 lets an unauthenticated re
Route guard bypass in @fastify/static before 10.1.3 exposes protected static files to unauthenticated remote attackers w
Route guard bypass in @fastify/static 8.0.0-9.1.0 exposes files protected by Fastify path-based middleware to unauthenti
Path-based access control in @fastify/static is defeated by non-canonical URL paths, allowing unauthenticated attackers
Path traversal in @fastify/static 8.0.0-9.1.0 allows unauthenticated remote attackers to obtain directory listings for a
EUVD-2026-81383
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB