PT-2024-35964 · Pnpm · Pnpm
Chalker
·
Published
2024-12-10
·
Updated
2025-09-22
·
CVE-2024-53866
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
pnpm versions prior to 9.15.0
Description:
The package manager pnpm seems to mishandle overrides and global cache. This can lead to overrides from one workspace leaking into npm metadata saved in the global cache, affecting other workspaces. Installs by default do not revalidate the data, including on first lockfile generation. This breaks the expectation that
ignore-scripts is sufficient to prevent immediate code execution on install. Global state integrity is lost via operations that one would expect to be secure, enabling subsequently running arbitrary code execution on installs.Recommendations:
For versions prior to 9.15.0, update to version 9.15.0 to fix the issue.
As a temporary workaround, use separate cache and store directories in each workspace.
Exploit
Fix
Untrusted Search Path
Origin Validation Error
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Pnpm