CVE-2020-8131Yarnpkg Yarn
High 7.5 No auth needed
Follow: this CVE · Yarnpkg · Yarnpkg Yarn We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.1
- 7.5
- EPSS
- 5.2% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Feb 24, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Yarn.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | yarn |
< 1.22.0 |
1.22.0 |
npm install yarn@1.22.0 |
Per OSV / GitHub Advisories (GHSA-8mfc-v7wv-p62g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yarnpkg | yarn | ≤ 1.21.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- hackerone.com Exploit Third Party Advisory