Upstream information
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.SUSE information
Overall state of this security issue: Does not affect SUSE products
This issue is currently rated as having important severity.
| CVSS detail | National Vulnerability Database | SUSE |
|---|---|---|
| Base Score | 9.8 | 8.3 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| Attack Vector | Network | Network |
| Attack Complexity | Low | High |
| Privileges Required | None | None |
| User Interaction | None | Required |
| Scope | Unchanged | Changed |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | High | High |
| CVSSv3 Version | 3.1 | 3.1 |
| CVSS detail | CNA (GitHub) | SUSE |
|---|---|---|
| Base Score | 5.8 | 5.8 |
| Vector | 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:X/V:X/RE:X/U:X | 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:X/V:X/RE:X/U:X |
| Attack Vector | Network | Network |
| Attack Complexity | High | High |
| Attack Requirements | Present | Present |
| Privileges Required | None | None |
| User Interaction | Passive | Passive |
| Vulnerable System Confidentiality Impact | None | None |
| Vulnerable System Integrity Impact | Low | Low |
| Vulnerable System Availability Impact | None | None |
| Subsequent System Confidentiality Impact | High | High |
| Subsequent System Integrity Impact | High | High |
| Subsequent System Availability Impact | High | High |
| CVSSv4 Version | 4.0 | 4.0 |
SUSE Timeline for this CVE
CVE page created: Tue Dec 10 20:00:46 2024CVE page last modified: Thu Jan 8 12:37:47 2026