Esm-dev esm.sh
esm.sh: Legacy Route Path Traversal Can Lead to RCE
esm.sh is a no-build content delivery network (CDN) for web development. In 137 and earlier, the legacy router first retrieves a response from legacyServer, parses the incoming request path, and ultimately writes the data to storage via buildStorage.Put. The router concatenates the path components without sanitizing them, producing a storage key. When this key is used, the underlying file system resolves the relative segments and writes the file to the specified path. Thus an attacker can craft a request that writes data to arbitrary locations on the server.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 137
- < 0.0.0-20260508100112-1960055e1d53
Fixed in 0.0.0-20260508100112-1960055e1d53
from GitHub Security Advisory GHSA-3636-h3vx-6465
Mitigation
Upgrade github.com/esm-dev/esm.sh to 0.0.0-20260508100112-1960055e1d53 or later.
References
- Vendor advisory github.com/esm-dev/esm.sh/security/advisories/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.