CVE-2026-44593: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in esm-dev esm.sh
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.
AI Analysis
Technical Summary
esm.sh, a no-build CDN for web development, contains a path traversal vulnerability (CWE-22) in its legacy router component in versions up to 137. The router retrieves a response from legacyServer, parses the request path, and concatenates path components without sanitization to form a storage key. This key is used in buildStorage.Put to write data to storage. Due to lack of path sanitization, relative path segments can cause the filesystem to write files outside the intended directory, allowing an attacker to write data to arbitrary server locations.
Potential Impact
An attacker can exploit this vulnerability to write files to arbitrary locations on the server hosting esm.sh. This could lead to unauthorized modification or creation of files, potentially compromising server integrity or enabling further attacks. The CVSS 4.0 score is 8.7 (high), reflecting network attack vector, no required privileges or user interaction, and high impact on integrity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider disabling or restricting access to the legacy router functionality if possible, or implement external controls to validate and sanitize request paths before they reach esm.sh. Monitor vendor communications for updates on patches or official mitigations.
CVE-2026-44593: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in esm-dev esm.sh
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.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
esm.sh, a no-build CDN for web development, contains a path traversal vulnerability (CWE-22) in its legacy router component in versions up to 137. The router retrieves a response from legacyServer, parses the request path, and concatenates path components without sanitization to form a storage key. This key is used in buildStorage.Put to write data to storage. Due to lack of path sanitization, relative path segments can cause the filesystem to write files outside the intended directory, allowing an attacker to write data to arbitrary server locations.
Potential Impact
An attacker can exploit this vulnerability to write files to arbitrary locations on the server hosting esm.sh. This could lead to unauthorized modification or creation of files, potentially compromising server integrity or enabling further attacks. The CVSS 4.0 score is 8.7 (high), reflecting network attack vector, no required privileges or user interaction, and high impact on integrity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider disabling or restricting access to the legacy router functionality if possible, or implement external controls to validate and sanitize request paths before they reach esm.sh. Monitor vendor communications for updates on patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-06T21:49:12.425Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a186052e29bf47b500b4216
Added to database: 05/28/2026, 15:33:38 UTC
Last enriched: 06/04/2026, 20:26:20 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.