Skip to main content
VulnerabilityPublished

CVE-2025-59341: esm.sh · Relative Path Traversal

Affects esm.shSource CVE Database V5

0

Public exploit available · CVSS 7.7 High.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.6% chance of exploitation in 30 days – higher than 76% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Sep 2025

  2. Weaponised: evidence found.

    CVSS exploit maturity: proof of concept public

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

    Not in CISA KEV and no source reports exploitation

  4. 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), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
esm-dev esm.shAffected
  • <=136
Fixed in–

AI-suggested

European organizations should implement the following specific mitigations: 1) Immediately audit usage of esm.sh in their web development and production environments to identify affected versions (<=136). 2) Where possible, upgrade esm.sh to a patched version once available or apply vendor-provided fixes promptly. 3) If upgrading is not immediately feasible, implement strict network-level controls such as web application firewalls (WAFs) with custom rules to detect and block path traversal patterns in esm.sh URL requests. 4) Employ runtime monitoring and logging to detect anomalous requests targeting esm.sh endpoints, focusing on suspicious path traversal sequences. 5) Restrict access to esm.sh services via network segmentation or IP whitelisting to limit exposure. 6) Conduct thorough code reviews and scanning of web applications consuming esm.sh assets to ensure no sensitive data is inadvertently exposed. 7) Consider hosting critical JavaScript modules internally or via trusted CDNs with verified security postures to reduce reliance on vulnerable third-party services. 8) Educate development and security teams about the risks of path traversal vulnerabilities and the importance of input validation and sanitization. 9) Prepare incident response plans to quickly address potential exploitation attempts involving esm.sh. These measures go beyond generic advice by focusing on immediate detection, containment, and strategic reduction of dependency on vulnerable services.

Description

esm.sh is a nobuild content delivery network(CDN) for modern web development. In 136 and earlier, a Local File Inclusion (LFI) issue was identified in the esm.sh service URL handling. An attacker could craft a request that causes the server to read and return files from the host filesystem (or other unintended file sources).

References

Community reviews

Loading reviews…