CVE-2026-102657
esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
- High 7.5
Description
esm.sh is a no-build content delivery network (CDN) for web development. Prior to server version 137_7, the documented web.NewHandler static file server in web/handler.go joins the URL-decoded r.URL.Path with Config.AppDir without verifying that the result remains inside the configured application directory. URL-encoded dot segments such as %2e%2e bypass the plain traversal redirect performed by Go's ServeMux, allowing an unauthenticated remote attacker to make the server open and return files outside Config.AppDir that are readable by the server process. The confirmed impact is file disclosure only, and the issue is reachable with Dev disabled. This issue is fixed in server version 137_7.
Key facts
- Published
- 6 Nov 2026
- Last changed
- 11 Nov 2026
- Assigned by
- GitHub_M
- EPSS
- 0.716% likely to be exploited in the next 30 days, higher than 54.34% of CVEs (scores for 16 Nov 2026)
- SSVC (CISA)
- Exploitation: poc; Automatable: yes; Technical impact: partial
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 7.5CVSS 3.1, Highfrom the CNA (GitHub_M)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| esm-dev | esm.sh |
|
Timeline
- 6 Nov 2026 Published
Weakness
Practice this bug class
HackZoneLabs has a hands-on lab on Path traversal (CWE-22).
References
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763
- https://github.com/esm-dev/esm.sh/pull/1376
- https://github.com/esm-dev/esm.sh/commit/468b6b2a4b4dfec334cf6b33b01fcd4e5cd93bed
- https://github.com/esm-dev/esm.sh/commit/fc3b345e73aeaa0b7a05b6f27d91c05fdf5f9b53
- https://github.com/esm-dev/esm.sh/releases/tag/v137_7