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
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
- CVE-2026-102657cve
- http://example/%2e%2e/%2e%2e/%2e%2e/secret.txturl
- http://example/secret.txturl
- http://example/../secret.txturl
- http://example/%2e%2e/secret.txturl
- http://example/a/../../secret.txturl
Original source: https://github.com/advisories/GHSA-g3c2-rjq2-c763