{"id":"CVE-2026-23644","published":"2026-01-18T22:49:29Z","modified":"2026-01-20T20:06:58Z","title":"esm.sh has path traversal in `extractPackageTarball` that enables file writes from malicious packages","vendor":"esm-dev","product":"esm.sh","tier":"tail","description":{"text":"esm.sh is a no-build content delivery network (CDN) for web development. Prior to Go pseeudoversion 0.0.0-20260116051925-c62ab83c589e, the software has a path traversal vulnerability due to an incomplete fix. `path.Clean` normalizes a path but does not prevent absolute paths in a malicious tar file. Commit https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16, corresponding to pseudoversion 0.0.0-20260116051925-c62ab83c589e, fixes this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0056,"percentile":0.47229,"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-2657-3c98-63jq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16","tags":["x_refsource_MISC"]},{"url":"https://github.com/esm-dev/esm.sh/commit/c62ab83c589e7b421a0e1376d2a00a4e48161093","tags":["x_refsource_MISC"]},{"url":"https://pkg.go.dev/vuln/GO-2025-4138","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.45},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"esm-dev","affectedVersions":[{"vendor":"esm-dev","product":"esm.sh","versions":["< 0.0.0-20260116051925-c62ab83c589e"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-20T20:04:08.412888Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/esm-dev/esm.sh","vulnerableRanges":[">=0.0.1, <=136","<0.0.0-20260116051925-c62ab83c589e"],"patched":["0.0.0-20260116051925-c62ab83c589e"],"from":["GHSA-2657-3c98-63jq","GO-2026-4332"],"provenance":"source"}],"summary":{"text":"The path traversal flaw sits in esm.sh, a no-build CDN for web development, specifically in its extractPackageTarball function, where the fix relies on path.Clean and fails to block absolute paths inside a malicious tar archive. An attacker who can get a malicious package processed by esm.sh can write files to arbitrary locations, with no authentication, no user interaction, and no special configuration required beyond network access to the service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:42Z"},"euvd":{"id":"EUVD-2026-3402","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-esm-dev-esm-sh-cve-2025-59341","children":[{"from":"CVE-2026-23644","to":"CVE-2025-50180","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/npmrc.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0","https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16","https://github.com/esm-dev/esm.sh/commit/c62ab83c589e7b421a0e1376d2a00a4e48161093"],"basis":"shared function","functions":["getPackageInfo"]}]},{"from":"CVE-2026-23644","to":"CVE-2026-27730","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/npmrc.go"],"commits":["https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16","https://github.com/esm-dev/esm.sh/commit/c62ab83c589e7b421a0e1376d2a00a4e48161093","https://github.com/esm-dev/esm.sh/commit/0593516c4cfab49ad3b4900416a8432ff2e23eb0"],"basis":"shared function","functions":["getPackageInfo"]}]}],"packageHistory":[{"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-65026","to":"CVE-2026-23644","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/esm-dev/esm.sh","fromFixed":"0.0.0-20251118065157-87d2f6497574","toFixed":"0.0.0-20260116051925-c62ab83c589e","daysApart":60}]}},{"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,"link":{"from":"CVE-2026-23644","to":"CVE-2026-44593","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/esm-dev/esm.sh","fromFixed":"0.0.0-20260116051925-c62ab83c589e","toFixed":"0.0.0-20260508100112-1960055e1d53","daysApart":130}]}},{"cve":"CVE-2026-102657","published":"2026-11-06","fixed":"0.2.0","kev":false},{"cve":"CVE-2025-59342","published":"2025-09-17","fixed":"136.1","kev":false}],"package":"Go:github.com/esm-dev/esm.sh"}}