CVE-2026-23644 esm.sh has path traversal in `extractPackageTarball` that enables file writes from malicious packages
HighCVSS 7.7
EPSS 0.56%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| esm-dev esm.sh(Go) | < 0.0.0-20260116051925-c62ab83c589e; >= 0.0.1, <= 136 | 0.0.0-20260116051925-c62ab83c589e | Fixed |
| esm.sh | < 136 | 136 | Fixed |
| esm-dev esm.sh | = < 0.0.0-20260116051925-c62ab83c589e | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| esm-dev esm.sh(Go) | >= 0.0.1, <= 136 | No fix listed |
| esm-dev esm.sh(Go) | < 0.0.0-20260116051925-c62ab83c589e | 0.0.0-20260116051925-c62ab83c589e |
| esm-dev esm.sh | = < 0.0.0-20260116051925-c62ab83c589e | No fix listed |
| esm.sh | < 136 | 136 |
References
- https://github.com/esm-dev/esm.sh/security/advisories/GHSA-2657-3c98-63jq vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/esm-dev/esm.sh/commit/9d77b88c320733ff6689d938d85d246a3af9af16 patch
- https://github.com/esm-dev/esm.sh/commit/c62ab83c589e7b421a0e1376d2a00a4e48161093 patch
- github.com product
- https://pkg.go.dev/vuln/GO-2025-4138 exploit vendor-advisory
- pkg.go.dev
- github.com