Critical severity · published Nov 19, 2025
CVE-2025-65025
esm.sh CDN service has arbitrary file write via tarslip
9.8
CVSS
0.6%
EPSS
No
On KEV
Description
esm.sh is a nobuild content delivery network(CDN) for modern web development. Prior to version 136, the esm.sh CDN service is vulnerable to path traversal during NPM package tarball extraction. An attacker can craft a malicious NPM package containing specially crafted file paths (e.g., package/../../tmp/evil.js). When esm.sh downloads and extracts this package, files may be written to arbitrary locations on the server, escaping the intended extraction directory. This issue has been patched in version 136.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 47% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ES
esm.sh · esm-dev
< 136 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-65025
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-65025
Patch
https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16
Exploit
https://github.com/esm-dev/esm.sh/security/advisories/GHSA-h3mw-4f23-gwpw
More from esm.sh
9.6
CVE-2025-65026
esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript
8.7
CVE-2026-44593
esm.sh: Legacy Route Path Traversal Can Lead to RCE
7.7
CVE-2025-59341
Local File Inclusion in esm.sh
7.5
CVE-2026-44594
esm.sh: Path Traversal via package.json browser field allows reading arbitrary server files
7.5
CVE-2026-27730
esm.sh has SSRF localhost/private-network bypass in `/http(s)` module route
