esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
cve-program · CVE-2026-102657 · Published
No access to your tenant or devices. Every item links to its source. What this means
Historical advisory recorded 11 Nov 2026 04:25:37 UTC. Read the latest advisory.
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.
Read the publisher's advisorySee how the publisher's advisory changed over time. Each link opens the version saved at that time. The publisher's update date can differ from the date shown here.
Each link identifies one complete publisher record. History can include advisories that previously shared an identifier; an identifier removed by a publisher no longer establishes a current relationship. A historical link shows only that record and earlier saved versions. Failed checks and unchanged reads do not create new versions.
cve-program · CVE-2026-102657 · Published
cve-program · CVE-2026-102657 · Published
This historical link shows only this version and versions saved before it. Browse all advisory history.