Skip to main content
CVE-2025-59342VulnerabilityPublished Updated

CVE-2025-59342: esm.sh · Path Traversal: '../filedir'

Affects esm.shSource CVE Database V5

0

Not known to be exploited · public exploit available (Exploit-DB) · CVSS 5.5 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 4.0 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
3.0% chance of exploitation in 30 days – higher than 87% 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:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P

Exploitation evidence

t = 0 is the CVE’s publication on cve.org

  1. Disclosed: evidence found.

    CVE published 17 Sep 2025

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

    Not in CISA KEV and no source reports exploitation

  3. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

Timeline

  1. CVE ID reserved

    by GitHub_M

    , 5 days before disclosure

  2. CVE published

    on cve.org

    , t = 0

  3. In Threat Radar

    record ingested

    , 10 minutes after disclosure

  4. , 90 days after disclosure

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 2026-10-26.

What to do

Affected software

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

AI-suggested

1. Upgrade esm.sh to version 136.1 or later immediately to apply the official patch addressing the path traversal issue. 2. Implement strict input validation and sanitization on all HTTP headers, especially those used in filesystem path construction, to reject or canonicalize any '../' sequences or other traversal patterns. 3. Employ filesystem access controls and sandboxing to limit the directories where the application can write files, minimizing the impact of any potential traversal attempts. 4. Monitor server logs for suspicious X-Zone-Id header values or unusual file write activities indicative of exploitation attempts. 5. Conduct regular security audits and code reviews focusing on path handling and input validation in web-facing components. 6. Consider deploying Web Application Firewalls (WAFs) with rules to detect and block path traversal payloads targeting HTTP headers. 7. Educate development teams on secure coding practices related to path handling to prevent recurrence of similar vulnerabilities.

Description

esm.sh is a nobuild content delivery network(CDN) for modern web development. In 136 and earlier, a path-traversal flaw in the handling of the X-Zone-Id HTTP header allows an attacker to cause the application to write files outside the intended storage location. The header value is used to build a filesystem path but is not properly canonicalized or restricted to the application’s storage base directory. As a result, supplying ../ sequences in X-Zone-Id causes files to be written to arbitrary directories. Version 136.1 contains a patch.

References

Community reviews

Loading reviews…