THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-g3c2-rjq2-c763 (high) — esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal

[GHSA] GHSA-g3c2-rjq2-c763 (high) — esm.sh: web.NewHandler allows arbitrary file read via encoded dot-segment path traversal

highgithub_advisoriesPublished 2026-11-09

GHSA-g3c2-rjq2-c763 Severity: high CVE: CVE-2026-102657

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

### Summary

The documented `web.NewHandler` static file server can read files outside `Config.AppDir` when the request path contains URL-encoded dot-segments such as `%2e%2e`. Go's `ServeMux` redirects plain `/../` paths, but it passes encoded dot-segm

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-g3c2-rjq2-c763