CVE-2025-65025
BaseFortify
Publication date: 2025-11-19
Last updated on: 2025-11-20
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| esm.sh | cdn | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability in esm.sh prior to version 136 is a path traversal issue during the extraction of NPM package tarballs. An attacker can create a malicious NPM package with specially crafted file paths that include directory traversal sequences (e.g., package/../../tmp/evil.js). When esm.sh downloads and extracts this package, it may write files outside the intended extraction directory to arbitrary locations on the server.
How can this vulnerability impact me? :
This vulnerability can allow an attacker to write files to arbitrary locations on the server hosting esm.sh. This could lead to unauthorized modification or addition of files, potentially compromising the server's integrity and security. The attacker could place malicious scripts or overwrite critical files, which may result in system compromise or further attacks.
What immediate steps should I take to mitigate this vulnerability?
Upgrade the esm.sh CDN service to version 136 or later, as this version includes a patch that fixes the path traversal vulnerability during NPM package tarball extraction.