# CVE-2020-8131: Path Traversal in Yarn

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.16%, higher than 92% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-24T14:41:23.000Z
- Modified: 2026-06-17T03:25:54.897Z
- Also known as: GHSA-8mfc-v7wv-p62g
- Weaknesses: CWE-22
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- yarn: Fixed Version: 1.22.0
- yarn (npm): before 1.22.0
- yarnpkg yarn: up to 1.21.1

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`

## References

- <https://hackerone.com/reports/730239> (exploit, third-party-advisory, web)
- <https://github.com/yarnpkg/yarn/pull/7831> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8131> (advisory)

## Sources

- CVE List: [CVE-2020-8131](https://www.cve.org/CVERecord?id=CVE-2020-8131), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8mfc-v7wv-p62g](https://github.com/advisories/GHSA-8mfc-v7wv-p62g), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-8131](https://nvd.nist.gov/vuln/detail/CVE-2020-8131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8131 · Whole record: https://cve.day/CVE-2020-8131.json · Rebuilt by cve.day 2026-11-25T22:57:50.959Z
