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

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 4% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 137\_7 (CNA); fix release not confirmed
- Status: published
- Published: 2026-11-06 · Modified: 2026-11-11
- Aliases: GHSA-g3c2-rjq2-c763, GO-2026-6954
- Record: https://cvemate.com/vulnerability/CVE-2026-102657 · JSON: https://cvemate.com/vulnerability/CVE-2026-102657/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 4.048%, percentile 90.947%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

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

## References

- <https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763>
- <https://github.com/esm-dev/esm.sh/pull/1376>
- <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/releases/tag/v137_7>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102657>
- <https://github.com/esm-dev/esm.sh>
- <https://github.com/esm-dev/esm.sh/releases/tag/v0.2.0>

---

Data as of 2026-12-05T14:13:28.592Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
