CVE-2026-102657

GHSA-g3c2-rjq2-c763 · published 6 Nov 2026 · updated 11 Nov 2026

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

8.5HighCVSS 7.5EPSS 4%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 4%. Fixed in github.com/esm-dev/esm.sh/web 0.2.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
esm-dev<137_7
go: github.com/esm-dev/esm.sh/web<0.2.00.2.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-102657 severity on Zeptric[![CVE-2026-102657](https://zeptric.io/badge/cve/CVE-2026-102657.svg)](https://zeptric.io/cve/CVE-2026-102657)