CVE-2026-44593CWE-22

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

High · published May 28, 2026

CVSS v4.0
8.7
EPSS
0%
Percentile
41.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS
0.00496 · 41.6th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-05-28T14:44Z
EPSS history
Timeline
  • 28 MAY 14:44Z
    esm.sh: Legacy Route Path Traversal Can Lead to RCE
    cvelistv5