CVE-2026-102657: esm.sh · web.NewHandler allows arbitrary file read via encoded dot-segment path traversal
Affects github.com/esm-dev/esm.sh/webSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 0.2.0 soon.
Data as of 9 Nov 2026, 23:24 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.2.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Upgrade github.com/esm-dev/esm.sh/web to 0.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/esm-dev/esm.sh/web | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in esm.sh version 0.2.0 that fixes this vulnerability. Users should upgrade to version 0.2.0 or later. Until patched, users should avoid using the vulnerable web.NewHandler setup in network-facing contexts or implement additional path validation to ensure requested paths remain within the application directory.
Description
The esm.sh web.NewHandler static file server allows unauthenticated attackers to read arbitrary files outside the configured application directory by using URL-encoded dot-segment path traversal sequences such as %2e%2e. The handler joins the decoded request path directly with the application directory path without verifying that the resulting path remains within the intended directory, enabling directory traversal. This vulnerability affects versions prior to 0.2.0 and has a CVSS 3.1 score of 7.5 (high severity). A fix is available in version 0.2.0.
References
- github.com/esm-dev/esm.sh/security/advisories/GHSA-g3c2-rjq2-c763 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-102657 (opens in a new tab)
- github.com/esm-dev/esm.sh/pull/1376 (opens in a new tab)
- github.com/esm-dev/esm.sh/commit/468b6b2a4b4dfec334cf6b33b01fcd4e5cd93bed (opens in a new tab)
- github.com/esm-dev/esm.sh/commit/fc3b345e73aeaa0b7a05b6f27d91c05fdf5f9b53 (opens in a new tab)
- github.com/esm-dev/esm.sh (opens in a new tab)
- github.com/esm-dev/esm.sh/releases/tag/v0.2.0 (opens in a new tab)
- github.com/esm-dev/esm.sh/releases/tag/v137_7 (opens in a new tab)