CVE-2020-8131
CVE-2020-8131 is a high-severity vulnerability in Yarnpkg Yarn with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-22.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.1
- EPSS exploit prediction: 5% (91st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-22
- Affected product: Yarnpkg Yarn
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2020-8131?
- 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.
- How severe is CVE-2020-8131?
- CVE-2020-8131 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2020-8131 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 5% (91st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2020-8131?
- CVE-2020-8131 affects Yarnpkg Yarn. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2020-8131?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2020-8131 published?
- CVE-2020-8131 was published on 2020-02-24 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*
More vulnerabilities in Yarnpkg Yarn
- CVE-2019-5448 — High (CVSS 8.1): Yarn before 1.17.3 is vulnerable to Missing Encryption of Sensitive Data due to HTTP URLs in lockfile causing…
- CVE-2019-10773 — High (CVSS 7.8): In Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host…
- CVE-2021-4435 — High (CVSS 7.7): An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with…
- CVE-2019-15608 — Medium (CVSS 5.9): The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before…
- CVE-2025-8262 — Medium (CVSS 4.3): A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the…
- CVE-2025-9308 — Low (CVSS 3.3): A vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file…
All CVEs affecting Yarnpkg Yarn →
Other CWE-22 (Path Traversal) vulnerabilities
- CVE-2026-48282 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Limitation of a Pathname to a Restricted…
- CVE-2026-54917 — Critical (CVSS 10.0): SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables. Prior to 4.30, the…
- CVE-2026-11429 — Critical (CVSS 10.0): Two endpoints in the Vault Service ScriptsController, shared by Altium Enterprise Server and Altium 365, accept file…
- CVE-2026-34909 — Critical (CVSS 10.0): A malicious actor with access to the network could exploit a Path Traversal vulnerability found in UniFi OS devices to…
- CVE-2026-7411 — Critical (CVSS 10.0): In Eclipse BaSyx Java Server SDK versions prior to 2.0.0-milestone-10, inadequate path normalization in the Submodel…
- CVE-2026-36767 — Critical (CVSS 10.0): A path traversal vulnerability in the /content/images/add endpoint of shopizer v3.2.5 allows attackers write arbitrary…