# CVE-2026-102657: esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.05%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-06T20:49:28.708Z
- Modified: 2026-11-23T20:41:24.245Z
- Also known as: GHSA-g3c2-rjq2-c763, GO-2026-6954
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- esm-dev esm.sh: < 137_7
- github.com/esm-dev/esm.sh/web (Go): before 0.2.0
- github.com/esm-dev/esm.sh (Go): before 0.2.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763> (exploit, advisory, web)
- <https://github.com/esm-dev/esm.sh/pull/1376> (fix, web)
- <https://github.com/esm-dev/esm.sh/commit/468b6b2a4b4dfec334cf6b33b01fcd4e5cd93bed> (fix, web)
- <https://github.com/esm-dev/esm.sh/commit/fc3b345e73aeaa0b7a05b6f27d91c05fdf5f9b53> (fix, web)
- <https://github.com/esm-dev/esm.sh/releases/tag/v137_7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102657> (advisory)
- <https://github.com/esm-dev/esm.sh> (package)
- <https://github.com/esm-dev/esm.sh/releases/tag/v0.2.0> (web)

## Sources

- CVE List: [CVE-2026-102657](https://www.cve.org/CVERecord?id=CVE-2026-102657), CVE Terms of Use, modified 2026-11-11
- GitHub Advisory Database: [GHSA-g3c2-rjq2-c763](https://github.com/advisories/GHSA-g3c2-rjq2-c763), CC-BY-4.0, modified 2026-11-23
- Go Vulnerability Database: [GO-2026-6954](https://pkg.go.dev/vuln/GO-2026-6954), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-102657](https://nvd.nist.gov/vuln/detail/CVE-2026-102657), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-102657 · Whole record: https://cve.day/CVE-2026-102657.json · Rebuilt by cve.day 2026-11-25T22:59:49.322Z
