esm.sh has path traversal in `extractPackageTarball` that enables file writes from malicious packages
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| esm-dev | esm.sh | before 0.0.0-20260116051925-c62ab83c589e | 0.0.0-20260116051925-c62ab83c589e | Patch available | CNA |
| — | github.com/esm-dev/esm.sh (Go) | 0.0.1 – 136 | — | No fix listed | GHSA-2657-3c98-63jq |
| — | github.com/esm-dev/esm.sh (Go) | before 0.0.0-20260116051925-c62ab83c589e | 0.0.0-20260116051925-c62ab83c589e | Patch available | GHSA-2657-3c98-63jq |
- esm.sh Vendoresm-dev Affected before 0.0.0-20260116051925-c62ab83c589e Fixed in 0.0.0-20260116051925-c62ab83c589e Patch available CNA
- github.com/esm-dev/esm.sh (Go) Vendor— Affected 0.0.1 – 136 Fixed in — No fix listed GHSA-2657-3c98-63jq
- github.com/esm-dev/esm.sh (Go) Vendor— Affected before 0.0.0-20260116051925-c62ab83c589e Fixed in 0.0.0-20260116051925-c62ab83c589e Patch available GHSA-2657-3c98-63jq
Remediation
- Fix · CNA esm.sh (esm-dev) Fixed in 0.0.0-20260116051925-c62ab83c589e
- Fix · GHSA-2657-3c98-63jq github.com/esm-dev/esm.sh (Go) Fixed in 0.0.0-20260116051925-c62ab83c589e Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-23644
- 2026-10-03 Alias added: GHSA-2657-3c98-63jq
References
Exploit 1
Patch 2
Advisory 2
More esm-dev Esm.sh vulnerabilities
- TI-2025-40211 esm.sh CDN service has arbitrary file write via tarslip CVSS 3.1CRITICAL 9.8
- TI-2025-32063 esm.sh is vulnerable to full-response SSRF CVSS 4.0HIGH 8.7
- TI-2025-40212 esm.sh CDN service has JS Template Literal Injection in CSS-to-JavaScript CVSS 3.1CRITICAL 9.6
- TI-2026-22092 esm.sh has SSRF localhost/private-network bypass in `/http(s)` module route CVSS 3.1HIGH 7.5
Sources
- CVE-2026-23644 · CVE Program
- CVE-2026-23644 · NVD
- FIRST EPSS
- GHSA-2657-3c98-63jq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences