CVE-2025-65025
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-11-19

Last updated on: 2025-11-20

Assigner: GitHub, Inc.

Description
esm.sh is a nobuild content delivery network(CDN) for modern web development. Prior to version 136, the esm.sh CDN service is vulnerable to path traversal during NPM package tarball extraction. An attacker can craft a malicious NPM package containing specially crafted file paths (e.g., package/../../tmp/evil.js). When esm.sh downloads and extracts this package, files may be written to arbitrary locations on the server, escaping the intended extraction directory. This issue has been patched in version 136.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-11-19
Last Modified
2025-11-20
Generated
2026-05-07
AI Q&A
2025-11-19
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
esm.sh cdn *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart