{"id":"CVE-2025-65025","published":"2025-11-19T17:32:46Z","modified":"2025-11-20T14:09:44Z","title":"esm.sh CDN service has arbitrary file write via tarslip","vendor":"esm-dev","product":"esm.sh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00571,"percentile":0.48145,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/esm-dev/esm.sh/security/advisories/GHSA-h3mw-4f23-gwpw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":9.63},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"esm-dev","affectedVersions":[{"vendor":"esm-dev","product":"esm.sh","versions":["< 136"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-11-20T14:09:39.459957Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/esm-dev/esm.sh","vulnerableRanges":["<0.0.0-20251117232647-9d77b88c3207"],"patched":["0.0.0-20251117232647-9d77b88c3207"],"from":["GHSA-h3mw-4f23-gwpw","GO-2025-4138"],"provenance":"source"}],"summary":{"text":"The esm.sh CDN service (product esm.sh, from vendor esm-dev) contains a path traversal flaw in its NPM package tarball extraction logic, where crafted entries such as package/../../tmp/evil.js can escape the intended extraction directory. An attacker can exploit this by publishing or supplying a malicious NPM package with such file paths, which the service then downloads and extracts over the network without authentication or user interaction, causing files to be written to arbitrary locations on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:09Z"},"euvd":{"id":"EUVD-2025-198181","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-50180","published":"2026-02-25","fixed":"0.0.0-20250616164159-0593516c4cfa","kev":false},{"cve":"CVE-2026-27730","published":"2026-02-25","fixed":"0.0.0-20250616164159-0593516c4cfa","kev":false},{"cve":"CVE-2026-44594","published":"2026-05-28","fixed":"0.0.0-20250616164159-0593516c4cfa","kev":false},{"cve":"CVE-2025-65025","published":"2025-11-19","fixed":"0.0.0-20251117232647-9d77b88c3207","kev":false},{"cve":"CVE-2025-65026","published":"2025-11-19","fixed":"0.0.0-20251118065157-87d2f6497574","kev":false,"link":{"from":"CVE-2025-65025","to":"CVE-2025-65026","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/esm-dev/esm.sh","fromFixed":"0.0.0-20251117232647-9d77b88c3207","toFixed":"0.0.0-20251118065157-87d2f6497574","daysApart":0}]}},{"cve":"CVE-2026-23644","published":"2026-01-18","fixed":"0.0.0-20260116051925-c62ab83c589e","kev":false},{"cve":"CVE-2026-44593","published":"2026-05-28","fixed":"0.0.0-20260508100112-1960055e1d53","kev":false}],"package":"Go:github.com/esm-dev/esm.sh"}}