Untrusted Search Path
CVE-2024-53866
Summary
The package manager pnpm seems to mishandle overrides and global cache: Overrides from one workspace leak into npm metadata saved in the global cache; npm metadata from the global cache affects other workspaces, and installs by default don't revalidate the data (including on the 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.This issue affects versions through 9.14.4 and 10.0.0-alpha.0 through 10.0.0-beta.0.
- HIGH
- NETWORK
- PASSIVE
- NONE
CWE-426 - Untrusted Search Path
The application searches for critical resources using an externally-supplied search path that can point to resources that are not under the application's direct control.
References
Advisory Timeline
- Published