# CVE-2025-65025: esm.sh CDN service has arbitrary file write via tarslip

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-19T17:32:46.835Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-h3mw-4f23-gwpw, GO-2025-4138
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- esm-dev esm.sh: < 136
- github.com/esm-dev/esm.sh (Go): before 0.0.0-20251117232647-9d77b88c3207
- esm esm.sh: before 136

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/esm-dev/esm.sh/security/advisories/GHSA-h3mw-4f23-gwpw> (exploit, advisory, vendor-advisory, web)
- <https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-65025> (advisory)
- <https://github.com/esm-dev/esm.sh> (package)

## Sources

- CVE List: [CVE-2025-65025](https://www.cve.org/CVERecord?id=CVE-2025-65025), CVE Terms of Use, modified 2025-11-20
- GitHub Advisory Database: [GHSA-h3mw-4f23-gwpw](https://github.com/advisories/GHSA-h3mw-4f23-gwpw), CC-BY-4.0, modified 2025-11-27
- Go Vulnerability Database: [GO-2025-4138](https://pkg.go.dev/vuln/GO-2025-4138), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-65025](https://nvd.nist.gov/vuln/detail/CVE-2025-65025), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-65025 · Whole record: https://cve.day/CVE-2025-65025.json · Rebuilt by cve.day 2026-11-25T22:59:07.840Z
