CVE-2020-8131
HIGH 7.5CVSS 3.1Path Traversal in Yarn
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.
- Published
- 24 Feb 2020
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-8mfc-v7wv-p62g
- Sources
- NVDJSONOSV GHSA-8mfc-v7wv-p62gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yarnpkg | yarncpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:* |
<= 1.21.1 | |
| OSV | npm | yarn | < 1.22.0 | 1.22.0 |
References
- https://github.com/yarnpkg/yarn/pull/7831 · Patch, Third Party Advisory, WEB
- https://hackerone.com/reports/730239 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-8131 · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 24 Feb 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Feb 2022)