CVE-2026-102657esm-dev esm.sh
High 7.5 No auth needed
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Nov 6, 2026
- Updated
- Nov 11, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for esm.sh.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/esm-dev/esm.sh |
< 0.2.0 |
0.2.0 |
go get github.com/esm-dev/esm.sh@v0.2.0 |
| Go | github.com/esm-dev/esm.sh/web |
< 0.2.0 |
0.2.0 |
go get github.com/esm-dev/esm.sh/web@v0.2.0 |
Per OSV / GitHub Advisories (GO-2026-6954, GHSA-g3c2-rjq2-c763). Check the version in your lockfile before upgrading.
Affected products
- esm-dev · esm.sh
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.