esm.sh has path traversal in `extractPackageTarball` that enables file writes from malicious packages
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| esm-dev | esm.sh | affected |
|
No data.
| Vendor | Product | Versions |
|---|---|---|
| Esm-dev | Esmsh | — |
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-2657-3c98-63jq | esm.sh has a path traversal in extractPackageTarball enables file writes from malicious packages |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.560% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Esm
Esm esm.sh |
|
| CPEs | cpe:2.3:a:esm:esm.sh:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Esm
Esm esm.sh |
|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Esm-dev
Esm-dev esmsh |
|
| Vendors & Products |
Esm-dev
Esm-dev esmsh |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | esm.sh has path traversal in `extractPackageTarball` that enables file writes from malicious packages | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV4_0
|