CVE-2026-86253
8.2
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
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| h3js | h3 | 0 < 1.15.6 | affected |
| h3js | h3 | 1.15.6 | unaffected |
| h3js | h3 | 2.0.0-beta.0 < 2.0.1-rc.15 | affected |
| h3js | h3 | 2.0.1-rc.15 | unaffected |
Weaknesses
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/h3js/h3/security/advisories/GHSA-wr4h-v87w-p3r7
- https://www.vulncheck.com/advisories/h3-before-1.15.6-path-traversal-via-percent-encoded-dot-segments
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.