Skip to content
OpenAdvisories
High · 8.7 CVE-2026-44593 EUVD-2026-32910GHSA-3636-h3vx-6465GO-2026-5071

esm.sh: Legacy Route Path Traversal Can Lead to RCE

Published May 28, 2026 · Updated Jun 2, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
esm-dev esm.sh <= 137 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/esm-dev/esm.sh < 0.0.0-20260508100112-1960055e1d53 0.0.0-20260508100112-1960055e1d53 GHSA-3636-h3vx-6465

Advisories 1

References