Skip to main content
← All vulnerabilities
CVE-2026-23644GO-2026-4332GHSA-2657-3C98-63JQ

esm.sh has path traversal in `extractPackageTarball` that enables file writes from malicious packages

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.0.0-20260116051925-c62ab83c589e
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • esm-dev esm.sh

    fixed in 0.0.0-20260116051925-c62ab83c589e

  • github.com/esm-dev/esm.shGo

    fixed in 0.0.0-20260116051925-c62ab83c589e

  • github.com/esm-dev/esm.shGo

    From 0.0.1 · through 136

References 4

GitHub · esm-dev/esm.sh

pkg.go.dev