Description
Arbitrary filesystem write vulnerability in Yarn before 1.22.0 allows attackers to write to any path on the filesystem and potentially lead to arbitrary code execution by forcing the user to install a malicious package.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | yarn | Fixed Version: 1.22.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-yarnpkg | 1.22.4-2 | — |
| Debian 13 | node-yarnpkg | 1.22.4-2 | — |
| Debian 12 | node-yarnpkg | 1.22.4-2 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | yarn | < 1.22.0 | 1.22.0 | GHSA-8mfc-v7wv-p62g |