{"id":"CVE-2026-102657","published":"2026-11-06T20:49:28Z","modified":"2026-11-11T03:30:44Z","title":"esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal","vendor":"esm-dev","product":"esm.sh","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03957,"percentile":0.90608,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/esm-dev/esm.sh/pull/1376","tags":["x_refsource_MISC"]},{"url":"https://github.com/esm-dev/esm.sh/commit/468b6b2a4b4dfec334cf6b33b01fcd4e5cd93bed","tags":["x_refsource_MISC"]},{"url":"https://github.com/esm-dev/esm.sh/commit/fc3b345e73aeaa0b7a05b6f27d91c05fdf5f9b53","tags":["x_refsource_MISC"]},{"url":"https://github.com/esm-dev/esm.sh/releases/tag/v137_7","tags":["x_refsource_MISC"]}],"priority":{"score":28.4,"factors":[{"name":"EPSS percentile","points":18.12},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-102657","name":"esm.sh web handler < v137_7 - Path Traversal","severity":"high","path":"http/cves/2026/CVE-2026-102657.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-102657.yaml"}],"provenance":"source"},"vendorSlug":"esm-dev","affectedVersions":[{"vendor":"esm-dev","product":"esm.sh","versions":["< 137_7"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-11T03:30:20.973915Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/esm-dev/esm.sh/web","vulnerableRanges":["<0.2.0"],"patched":["0.2.0"],"from":["GHSA-g3c2-rjq2-c763"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/esm-dev/esm.sh","vulnerableRanges":["<0.2.0"],"patched":["0.2.0"],"from":["GO-2026-6954"],"provenance":"source"}],"summary":{"text":"The esm.sh CDN server's web.NewHandler static file handler (web/handler.go) fails to confine URL-decoded request paths to the configured application directory, so encoded dot segments escape it. An unauthenticated remote attacker can exploit this over the network with no user interaction, and no special configuration beyond the default setup is required, to read and receive files outside the application directory that the server process can access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:37:47Z"},"euvd":{"id":"EUVD-2026-118494","exploited":false,"provenance":"source"}}