Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP GET with %2e%2e encoded path segments
-
DeliveryFastURL extracts raw unnormalized pathname
-
ExploitdecodeURI() decodes %2e to dots, producing ../ sequences
-
ExecutionTraversal path passed unsanitized to getMeta() callback
-
Persistpath.join(root, id) resolves ../ on filesystem
-
ImpactArbitrary file contents returned in HTTP response
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 | The target Node.js application must use h3's serveStatic() API with filesystem-backed getMeta() and getContents() callbacks (the standard documented usage). The vulnerability is specific to Node.js runtime: h3 uses srvx's FastURL on Node.js, which does not normalize dot segments; deployments on Bun or Deno using the WHATWG URL parser are not confirmed vulnerable. No authentication is required (PR:N), no user interaction is needed, and no special network position is required beyond being able to send HTTP requests to the serveStatic() endpoint. The limiting factor is the requirement that serveStatic() be deployed - applications that serve files through other mechanisms or that do not expose static file serving are not affected. |
| Impact | The CVSS 4.0 score of 8.2 with AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N accurately reflects that the attack is network-accessible with no authentication, but carries an Attack Requirements condition (AT:P) - the application must be actively using serveStatic() with filesystem callbacks, which is not a universal deployment pattern. No active exploitation is confirmed (not in CISA KEV), but EPSS data was not provided in source intelligence. Critically, a step-by-step PoC is embedded in the GHSA advisory and covers the full exploit chain including a working server.ts example, substantially lowering the bar for exploitation. The vulnerability is Node.js-specific; Bun or Deno deployments that use the standard WHATWG URL parser are not affected. Impact is limited to confidentiality (arbitrary file read); no integrity or availability impact is established. Real-world priority is high for any Node.js application using h3's serveStatic() for production file serving, and lower for applications that do not use this API. |
| Exploit ScenarioDerived | An attacker identifies a Node.js application using h3 and sends GET /%2e%2e/%2e%2e/%2e%2e/etc/passwd to any endpoint served by serveStatic(). FastURL returns the raw pathname unchanged, decodeURI() converts the encoded segments to ../, and path.join(staticRoot, '/../../../etc/passwd') resolves to /etc/passwd on the OS, returning its contents in the HTTP response. A working proof-of-concept server and curl command are published in GHSA-wr4h-v87w-p3r7. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 06, 2026
Path traversal in h3's serveStatic() function on Node.js allows unauthenticated remote attackers to read arbitrary files outside the configured static root directory. The root cause is that h3 uses srvx's FastURL class, which skips WHATWG URL normalization for performance - percent-encoded dot segments (%2e%2e) survive raw into decodeURI(), are decoded to ../, and are passed unsanitized to filesystem callbacks. A detailed proof-of-concept exploit chain is publicly documented in GHSA-wr4h-v87w-p3r7; no active exploitation confirmed in CISA KEV at time of analysis. Fixed in versions 1.15.6 and 2.0.1-rc.15.
RemediationAI
Upgrade h3 to version 1.15.6 (stable channel) or 2.0.1-rc.15 (release candidate channel). The upstream fix is at commit https://github.com/h3js/h3/commit/0e751b4059060f2ade01a0bdfd96b0f5ffc8a26d. If immediate upgrade is not possible, deploy a reverse proxy (nginx, Caddy, or HAProxy) in front of the Node.js application configured to normalize URL paths and reject requests containing encoded dot sequences (%2e, %2E) before they reach h3 - this eliminates the traversal at the network layer with no application change required. Alternatively, in getMeta() and getContents() callbacks, validate that path.resolve(root, id) does not produce a path outside the static root before performing any filesystem operation; this is a compensating control that addresses the specific exploitation vector without modifying the framework. Avoid using serveStatic() in h3 for sensitive filesystem roots until upgrade is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
h3 is a lightweight HTTP framework (npm package h3js/h3) underpinning the Nitro server and Nuxt.js ecosystem. The vulnerable code is in src/utils/static.ts line 86, where serveStatic() calls decodeURI(withLeadingSlash(withoutTrailingSlash(event.url.pathname))). On Node.js, h3 relies on srvx's FastURL for URL parsing; unlike the standard WHATWG URL parser, FastURL extracts pathname via raw string slicing and does not normalize dot segments (.) or their percent-encoded equivalents (%2e). This means a request to /%2e%2e/secret passes FastURL untouched, decodeURI() converts %2e to dots producing /../secret, and the resulting traversal string is forwarded verbatim to the caller-supplied getMeta() and getContents() callbacks. When those callbacks use path.join(root, id) - the documented usage - the OS resolves the ../ sequences, escaping the static root. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) is the precise root cause. CPE: cpe:2.3:a:h3js:h3:*:*:*:*:*:*:*:*.
Know when H3 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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Exploitation is straightforward once a serveStatic() endpoint is identified - no auth, no interaction, no complexity beyond crafting the encoded URL.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
h3 (npm package) versions <= 2.0.1-rc.14 contain a path traversal vulnerability in serveStatic(). On Node.js deployments, event.url.pathname is not normalized, so percent-encoded dot segments (%2e%2e) are passed to decodeURI() and decoded to ../ sequences without sanitization. An unauthenticated remote attacker can send crafted requests to endpoints served by serveStatic() to read arbitrary files outside the intended static directory. Fixed in 1.15.6 and 2.0.1-rc.15.
Blast Radius
ecosystem impact- 1 npm packages depend on h3 (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2.0.0.
Technical POC Analysis
CWE-22 path traversal, with CWE-116 (improper encoding/escaping) listed as secondary.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 public PoC link from github
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
h3 Node.js library's serveStatic() function contains a path traversal vulnerability allowing unauthenticated remote attackers to read arbitrary files on affected systems. This poses a significant confidentiality risk to any organization using h3, potentially exposing source code, configuration files, private keys, and sensitive customer data.
Apply vendor patch: h3 1.15.6 (v1.x) or 2.0.1-rc.15 (v2.x). If patching is delayed, implement Web Application Firewall rules to block %2e and %2e%2e encoded URL sequences; restrict HTTP directory listing; apply filesystem access controls limiting exposure of sensitive configuration and key files; and monitor access logs for unusual file-access patterns indicative of exploitation.
Threat Model
4 threats: Information Disclosure, Elevation of Privilege, Tampering and 1 more
4-step attack chain with trust boundaries and controls
Full threat model - attack chain, trust boundaries, controls per stage and evidence - is part of the Pro and Business plans.
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.
HTTP request smuggling in H3 framework versions before 1.15.5 allows remote attackers to bypass security controls by exp
Denial of service in h3 (npm package h3js/h3, versions 2.0.0-beta.4 through 2.0.1-rc.17) allows unauthenticated remote a
Path traversal in h3's serveStatic utility (versions before 1.15.9) enables unauthenticated remote attackers to read arb
SSE event injection in the h3 JavaScript HTTP framework (npm package h3js/h3, versions before 1.15.9 stable and before 2
Open redirect in h3 (h3js) before 2.0.1-rc.18 allows unauthenticated remote attackers to redirect victims to arbitrary e
EUVD-2026-72109
GHSA-jh84-7pcc-38gf
NVD
CVE.org
EPSS
VulDB
Exploit-DB