CVE-2025-65025
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-65025, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

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-07-07
AI Q&A
2025-11-19
EPSS Evaluated
2026-07-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 Quick Actions

Instant insights powered by AI
Executive Summary

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.

Impact Analysis

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.

Mitigation Strategies

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.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-65025. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart