Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Fastify app with route-based static guard
-
DeliveryCraft non-canonical URL using encoded dots, backslashes, or duplicate slashes
-
ExploitSend unauthenticated HTTP GET request
-
ExecutionRoute matcher sees unguarded path, bypass succeeds
-
Persistsend layer resolves canonical filesystem path
-
ImpactProtected static file contents returned to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two conditions to be simultaneously true: the target must run @fastify/static in a version prior to 10.1.3, AND the application must protect a subtree of the static root using a route-based guard (a Fastify route plugin, hook, or middleware that restricts access based on URL prefix). Applications using only the allowedPath option are explicitly not vulnerable per the vendor advisory. The attacker must be able to reach the Fastify HTTP endpoint over the network; no authentication is required (PR:N per CVSS vector) and no user interaction is needed. Exploitation is bounded by the guard mechanism: only route-based guards are bypassed; OS-level file permissions, allowedPath logic, or upstream reverse proxy normalization remain effective barriers. If no route-based guard is configured, the attack surface does not exist. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, score 7.5) accurately reflects the threat: network-reachable, low complexity, no authentication, high confidentiality impact, with no integrity or availability consequence and unchanged scope. The real-world risk is meaningfully conditional: only applications that protect a static subtree using a route-based guard (not the allowedPath option) are exposed - a significant narrowing factor. No CISA KEV listing and no public POC exist at time of analysis, and EPSS data was not provided so exploitation probability cannot be quantified. However, path normalization bypass is an extremely well-documented class of attack requiring no specialized knowledge, which lowers the practical bar substantially. The net assessment is a genuine high priority for affected configurations - route-guard-protected Fastify deployments should patch immediately - but not universally critical, as allowedPath users are explicitly exempt. There is no conflict between CVSS signals and the description; both align on unauthenticated network access with disclosure-only impact. |
| Exploit ScenarioDerived | An attacker identifies a Fastify application serving static files where a route-based guard restricts access to a path such as /private/. By sending a crafted GET request using a non-canonical path form - for example, GET /%2Eprivate/secret.json or GET /public/../private/secret.json with encoded or duplicated segments - the routing layer matches a different, unguarded route while the send library resolves the canonical path and serves the protected file's contents. No authentication or prior access is required, and no public POC exists at time of analysis, though the technique is widely understood. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Route guard bypass in @fastify/static before 10.1.3 exposes protected static files to unauthenticated remote attackers without requiring any credentials. The plugin failed to canonicalize non-standard path forms - including dot segments, duplicate slashes, percent-encoded dots, and backslashes - before matching the request path against route-based guards, allowing crafted URLs to evade the guard while the underlying send layer resolves and serves the protected file. This is an incomplete fix for a prior vulnerability in the same component; no public exploit identified at time of analysis, though the technique is a textbook path normalization bypass requiring no advanced skills.
RemediationAI
Upgrade @fastify/static to version 10.1.3 or later, which canonicalizes request pathnames - including backslash rejection - before both route matching and file serving, closing the guard bypass entirely. The vendor advisory at https://github.com/fastify/fastify-static/security/advisories/GHSA-423g-23ch-w7c6 confirms this as the authoritative fix. If immediate patching is not feasible, migrate route-based guards to the allowedPath option, which the vendor explicitly identifies as not affected by this vulnerability; note that allowedPath operates on resolved file paths rather than URL routes and may require application logic adjustments to replicate the same access policy. As an additional compensating control, configure an ingress reverse proxy (nginx, Caddy) to normalize request paths before forwarding to Fastify, or deploy a WAF rule that rejects requests containing percent-encoded dots (%2E), double slashes, or backslashes - both approaches have low side-effect risk for most applications but add operational complexity and should not replace patching.
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 vulnerability is rooted in CWE-22 (Path Traversal) and specifically in a path canonicalization gap between two processing layers: the Fastify route-matching layer and the send file-serving library. @fastify/static is the official static file plugin for the Fastify Node.js web framework; it delegates actual file serving to the send library. The previous incomplete fix rejected parent-directory segments (../) but did not normalize dot segments (.), duplicate slashes (//), percent-encoded dots (%2E), or Windows-style backslashes before route matching. Because the HTTP routing layer and the filesystem resolver handle these non-canonical forms differently, a crafted URL can appear as a distinct, unguarded path to the route matcher while resolving identically to the protected file on disk. The CPE (cpe:2.3:a:@fastify/static:@fastify/static:*:*:*:*:*:*:*:*) covers all versions prior to the fix. Version 10.1.3 addresses this by applying full pathname canonicalization - including explicit backslash rejection - before both routing and send delegation.
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:H/I:N/A:N
Network-reachable with no authentication required; impact is file disclosure only (C:H, I:N, A:N); scope unchanged as no system boundary is crossed.
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
2DescriptionCVE.org
@fastify/static before version 10.1.3 contains an incomplete fix for a previous route guard bypass. The static file handler rejected only parent directory segments, but it did not canonicalize dot segments, duplicate slashes, encoded dots, or backslashes before route matching and before delegating to the send layer. As a result, an unauthenticated attacker could request a file protected by a route based guard using a non canonical path form that misses the guarded route yet resolves back onto the protected file, disclosing its contents. Applications that protect a subtree of the static root with a route based guard are affected, while applications relying on the allowedPath option are not. This is fixed in @fastify/static 10.1.3, which canonicalizes the pathname, including rejecting backslashes, on the path used for routing and serving.
Executive ViewAI
@fastify/static before version 10.1.3 contains a route guard bypass that exposes protected static files to unauthenticated attackers without requiring credentials. Any organization running applications with this library risks unauthorized access to sensitive static assets, configuration data, or private content. Immediate inventory and mitigation of deployed instances is critical to prevent data exposure.
No vendor-released patch identified at time of analysis. Interim mitigations: deploy path canonicalization middleware upstream of @fastify/static to normalize all file path forms (dots, slashes, percent-encoding, backslashes) before route evaluation; enforce authentication for static file endpoints via reverse proxy or WAF rules; restrict accessible directory scope to only non-sensitive static content.
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
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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 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
Authorization bypass in @fastify/static before 10.1.4 lets an unauthenticated remote attacker read files that a route gu
EUVD-2026-54086
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB