Esm-dev esm.sh
esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 137_7
Fixed in 137_7
Mitigation
Upgrade esm.sh to 137_7 or later.
References
- Vendor advisory github.com/esm-dev/esm.sh/security/advisories/…
- Patch github.com/esm-dev/esm.sh/pull/1376
- Patch github.com/esm-dev/esm.sh/commit/468b6b2a4b4df…
2 more
Timeline
Days relative to CVE publicationPublic PoC known, its date not yet looked up; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: esm.sh web handler < v137_7 - Path Traversal | unknown | 17 Nov 2026 |