CVE-2025-65025
CRITICAL 9.8CVSS 3.1esm.sh CDN service has arbitrary file write via tarslip
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.
- Published
- 19 Nov 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-h3mw-4f23-gwpwGO-2025-4138
- Sources
- NVDJSONOSV GHSA-h3mw-4f23-gwpwJSONOSV GO-2025-4138JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | esm | esm.shcpe:2.3:a:esm:esm.sh:*:*:*:*:*:*:*:* |
< 136 | 136 |
| OSV | Go | github.com/esm-dev/esm.sh | < 0.0.0-20251117232647-9d77b88c3207 | 0.0.0-20251117232647-9d77b88c3207 |
References
- https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16 · Patch, WEB, FIX
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-h3mw-4f23-gwpw · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-65025 · ADVISORY
- https://github.com/esm-dev/esm.sh · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 19 Nov 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Nov 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Nov 2025)