# CVE-2026-23644: esm.sh has path traversal in `extractPackageTarball` that enables file writes from malicious packages

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- 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.68%, higher than 47% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-18T22:49:29.676Z
- Modified: 2026-09-10T03:50:32.291Z
- Also known as: GHSA-2657-3c98-63jq, GO-2026-4332
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- esm-dev esm.sh: < 0.0.0-20260116051925-c62ab83c589e
- github.com/esm-dev/esm.sh (Go): from 0.0.1 up to 136; before 0.0.0-20260116051925-c62ab83c589e
- esm esm.sh: before 136

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://pkg.go.dev/vuln/GO-2025-4138> (exploit, vendor-advisory, web)
- <https://github.com/esm-dev/esm.sh/security/advisories/GHSA-2657-3c98-63jq> (advisory, vendor-advisory, web)
- <https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16> (fix, patch, web)
- <https://github.com/esm-dev/esm.sh/commit/c62ab83c589e7b421a0e1376d2a00a4e48161093> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23644> (advisory)
- <https://github.com/esm-dev/esm.sh> (package)
- <https://pkg.go.dev/vuln/GO-2026-4332> (web)

## Sources

- CVE List: [CVE-2026-23644](https://www.cve.org/CVERecord?id=CVE-2026-23644), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-2657-3c98-63jq](https://github.com/advisories/GHSA-2657-3c98-63jq), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4332](https://pkg.go.dev/vuln/GO-2026-4332), CC-BY-4.0, modified 2026-02-26
- NVD: [CVE-2026-23644](https://nvd.nist.gov/vuln/detail/CVE-2026-23644), Public domain, modified 2026-06-17

---

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