← Vulnerability feed

Vulnerability record · CVE-2024-53866 · published 10 December 2024

CVE-2024-53866: Pnpm untrusted search path vulnerability

Pnpm · Pnpm

The package manager pnpm prior to version 9.15.0 seems to mishandle overrides and global cache: Overrides from one workspace leak into npm metadata saved in global cache; npm metadata from global cache affects other workspaces; and installs by default don't revalidate the data (including on first lockfile generation). This can make workspace A (even running with `ignore-scripts=true`) posion global cache and execute scripts in workspace B. Users generally expect `ignore-scripts` to be sufficient to prevent immediate code execution on install (e.g. when the tree is just repacked/bundled without executing it). Here, that expectation is broken. Global state integrity is lost via operations that one would expect to be secure, enabling subsequently running arbitrary code execution on installs. Version 9.15.0 fixes the issue. As a work-around, use separate cache and store dirs in each workspace.

5.8 CVSS 4.0 Medium EPSS 0.98% · top 38.9% CWE-426 · Untrusted search path
5.8CVSS 4.0 base score
0.98%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 1 tagged exploit
22 Jun 2026Last modified by NVD

Description

The package manager pnpm prior to version 9.15.0 seems to mishandle overrides and global cache: Overrides from one workspace leak into npm metadata saved in global cache; npm metadata from global cache affects other workspaces; and installs by default don't revalidate the data (including on first lockfile generation). This can make workspace A (even running with `ignore-scripts=true`) posion global cache and execute scripts in workspace B. Users generally expect `ignore-scripts` to be sufficient to prevent immediate code execution on install (e.g. when the tree is just repacked/bundled without executing it). Here, that expectation is broken. Global state integrity is lost via operations that one would expect to be secure, enabling subsequently running arbitrary code execution on installs. Version 9.15.0 fixes the issue. As a work-around, use separate cache and store dirs in each workspace.

CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-53866 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-69264Pnpm vulnerabilitypnpm is a package manager. Versions 10.0.0 through 10.25 allow git-hosted dependencies to execute arbitrary code during pnpm install, circumventing t…EPSS 1.0%9.8CVE-2023-37478Pnpm improper access control vulnerabilitypnpm is a package manager. It is possible to construct a tarball that, when installed via npm or parsed by the registry is safe, but when installed v…EPSS 1.2%8.8CVE-2026-55697Pnpm os command injection vulnerabilitypnpm is a package manager. Prior to 10.34.2 and 11.5.3, pnpm can install configDependencies declared in pnpm-workspace.yaml before command dispatch. …EPSS 0.19%8.8CVE-2026-55698Pnpm insufficient verification of data authenticity vulnerabilitypnpm is a package manager. Prior to 10.34.2 and 11.5.3, pnpm can persist package-manager bootstrap metadata in the first YAML document of pnpm-lock.y…EPSS 0.30%8.8CVE-2026-55487Pnpm origin validation error vulnerabilitypnpm is a package manager. Prior to 10.34.2 and 11.5.3, the generic peer-suffix normalizer also stripped parenthesized text from git, URL, tarball, f…EPSS 0.18%8.8CVE-2026-50016Pnpm relative path traversal vulnerabilitypnpm is a package manager. Prior to 10.34.0 and 11.4.0, pnpm allows a transitive dependency alias from registry package metadata to contain path trav…EPSS 0.53%8.8CVE-2025-69263Pnpm download of code without integrity check vulnerabilitypnpm is a package manager. Versions 10.26.2 and below store HTTP tarball dependencies (and git-hosted tarballs) in the lockfile without integrity has…EPSS 0.48%8.8CVE-2022-26183Pnpm untrusted search path vulnerabilityPNPM v6.15.1 and below was discovered to contain an untrusted search path which causes the application to behave in unexpected ways when users execut…EPSS 1.6%

Source: NIST National Vulnerability Database (record CVE-2024-53866), CISA KEV, FIRST EPSS (scores of 2026-10-12). This page is refreshed as NVD updates the record.