CVE-2025-65025CWE-22path-traversal

CVE-2025-65025

High · published November 19, 2025

CVSS v3.1
8.2
EPSS
1%
Percentile
46.5
In the wild
Unconfirmed
What it is

⚡ A crafty path traversal vulnerability lets mischief-makers sneak files where they shouldn't! Before version 136, esm.sh's CDN could be tricked into writing files to arbitrary locations during tarball extraction. 🔥 This is like a delivery driver who blindly follows a package label that says "Drop off at the back door of the building," without checking if it actually belongs there, allowing threats to sneak in unsuspected! An attacker could exploit this flaw to write malicious files anywhere on the server, potentially allowing them to execute harmful scripts or gain unauthorized access. With the wrong package, they could infiltrate your entire system! It's a serious breach waiting to happen, and we definitely don't want that!

Put simply

This is like a delivery driver who blindly follows a package label that says "Drop off at the back door of the building," without checking if it actually belongs there, allowing threats to sneak in unsuspected! This vulnerability occurs during the extraction of NPM packages, where attackers can craft file paths that escape the designated extraction directory, leading to unauthorized file writing on the server.

What to do

An attacker could exploit this flaw to write malicious files anywhere on the server, potentially allowing them to execute harmful scripts or gain unauthorized access. With the wrong package, they could infiltrate your entire system! It's a serious breach waiting to happen, and we definitely don't want that! Update esm.sh to version 136 or later immediately to close this path traversal vulnerability. Additionally, ensure your system verifies the integrity of packages before extraction to prevent malicious files from wreaking havoc. You've got this! Follow these steps to secure your setup and keep your environment safe. 🛡️

The record
Technical detail
CVSS v3.1
8.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00571 · 46.5th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2025-11-19T23:15Z
Affected products (1)
ProductVersionsFixed in
esm/esm.sh< 136136
References (3)
EPSS history
Timeline
  • 19 NOV 17:32Z
    esm.sh CDN service has arbitrary file write via tarslip
    cvelistv5