Skip to main content

h3 npm package CVE-2026-86253

| EUVDEUVD-2026-72109 HIGH
Path Traversal (CWE-22)
2026-09-06 VulnCheck GHSA-jh84-7pcc-38gf
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP GET with %2e%2e encoded path segments
  2. Delivery
    FastURL extracts raw unnormalized pathname
  3. Exploit
    decodeURI() decodes %2e to dots, producing ../ sequences
  4. Execution
    Traversal path passed unsanitized to getMeta() callback
  5. Persist
    path.join(root, id) resolves ../ on filesystem
  6. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 public PoC Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

h3 0 <1.15.6
h3 2.0.0-beta.0 <2.0.1-rc.15

Affected Packages

npm h3 fix: 1.15.6, 2.0.1-rc.15

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

Vendor (VulnCheck) PRIMARY 8.2 HIGH
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
vuln.today AI 7.5 HIGH

Exploitation is straightforward once a serveStatic() endpoint is identified - no auth, no interaction, no complexity beyond crafting the encoded URL.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 5.9 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 06, 2026 - 13:01 EUVD
CVE Published
Sep 06, 2026 - 12:00 cve.org
HIGH 8.2

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
core HTTP framework for Nuxt.js/Nitro server ecosystem
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

61
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

SUSE

Severity: Important

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy