Vulnerability · Published Feb 24, 2020 · Assigned by hackerone
CVE-2020-8131
High 7.5
In plain English
A high-severity path traversal in yarn. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.2% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)5.2%top 7.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-yarnpkg | 1.22.4-2 | DEBIAN-CVE-2020-8131 |
| Debian:13 | node-yarnpkg | 1.22.4-2 | DEBIAN-CVE-2020-8131 |
| Debian:14 | node-yarnpkg | 1.22.4-2 | DEBIAN-CVE-2020-8131 |
| npm | yarn | 1.22.0 | GHSA-8mfc-v7wv-p62g |
Affected products (as reported)
Weakness: CWE-22
References
- https://hackerone.com/reports/730239 x_refsource_MISC
- https://github.com/yarnpkg/yarn/pull/7831 x_refsource_CONFIRM