CVE-2026-102657esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
- 7.5HighCVSS base score
- 2.6%Exploitation in 30 daysEPSS · top 15% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits2
Nuclei templates1 template
- esm.sh web handler < v137_7 - Path Traversal (Nuclei template) (opens in a new tab)
http/cves/2026/CVE-2026-102657.yamlSeverity high
References tagged exploit1 reference
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763 (opens in a new tab)x_refsource_CONFIRMexploit
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 38 days later
· 38 days later
Published
- 5 days later
· 5 days later
Public exploit appeared
A proof of concept or exploit was published
- 7 days later
· 7 days later
EPSS rose above 1%
0.72% → 2.6%
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 2.6% · top 15% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/esm-dev/esm.sh/webGHSA-g3c2-rjq2-c763 (opens in a new tab)
References
References5
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763 (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/esm-dev/esm.sh/pull/1376 (opens in a new tab)x_refsource_MISC
- https://github.com/esm-dev/esm.sh/commit/468b6b2a4b4dfec334cf6b33b01fcd4e5cd93bed (opens in a new tab)x_refsource_MISC
- https://github.com/esm-dev/esm.sh/commit/fc3b345e73aeaa0b7a05b6f27d91c05fdf5f9b53 (opens in a new tab)x_refsource_MISC
- https://github.com/esm-dev/esm.sh/releases/tag/v137_7 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-118494 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-g3c2-rjq2-c763 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-102657)Record last updated .