CVE-2026-102657
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-11-11 |
Timeline
- 2026-11-06Published by the CNA20:49 UTC
- 2026-11-09GitHub advisory published (GHSA-g3c2-rjq2-c763)3 days after publication
- 2026-11-11CISA SSVC decision recorded5 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2026-102657: esm.sh web handler < v137_7 - Path Traversal
GitHub advisory GHSA-g3c2-rjq2-c763, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/esm-dev/esm.sh/web | before 0.2.0 | 0.2.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| esm-dev esm.sh |
References
- 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/pull/1376
- https://github.com/esm-dev/esm.sh/releases/tag/v137_7
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-102657'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-102657'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-102657'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-102657'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).