Skip to main content
VulnerabilityPublished

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

0
Compare
Authoritative record:CVE-2026-102657· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 0.2.0 soon.

Data as of 9 Nov 2026, 23:24 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Gogithub.com/esm-dev/esm.sh/webAffected
  • <0.2.0
Fixed in
  • 0.2.0

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

Community reviews

Loading reviews…