← Vulnerability feed

Vulnerability record · CVE-2020-8131 · published 24 February 2020

CVE-2020-8131: Yarnpkg yarn path traversal vulnerability

Yarnpkg · 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.

7.5 CVSS 3.1 High EPSS 5.2% · top 7.9% CWE-22 · Path traversal
7.5CVSS 3.1 base score, v2 5.1
5.2%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://github.com/yarnpkg/yarn/pull/7831 PatchThird Party Advisory
https://hackerone.com/reports/730239 ExploitThird Party Advisory
https://github.com/yarnpkg/yarn/pull/7831 PatchThird Party Advisory
https://hackerone.com/reports/730239 ExploitThird Party Advisory

Track CVE-2020-8131 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.1CVE-2019-5448Yarnpkg yarn missing encryption vulnerabilityYarn before 1.17.3 is vulnerable to Missing Encryption of Sensitive Data due to HTTP URLs in lockfile causing unencrypted authentication data to be s…EPSS 0.67%7.8CVE-2021-4435Yarnpkg yarn untrusted search path vulnerabilityAn untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, m…EPSS 0.30%7.8CVE-2019-10773Yarnpkg yarn link following vulnerabilityIn Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host filesystem by using specially craft…EPSS 1.5%5.9CVE-2019-15608Yarnpkg yarn toctou race condition vulnerabilityThe package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before writing a package to cache. It's …EPSS 1.8%5.3CVE-2025-8262Yarnpkg yarn uncontrolled resource consumption vulnerabilityA vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of …EPSS 0.72%4.8CVE-2025-9308Yarnpkg yarn uncontrolled resource consumption vulnerabilityA vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file src/util/request-manager.js. Such mani…EPSS 0.21%9.8CVE-2026-93616Checkpoint multi-domain security management path traversal vulnerabilityA directory traversal and file upload vulnerability allows an unauthenticated attacker to upload and execute arbitrary scripts on Check Point Managem…KEVEPSS 20%10.0CVE-2026-85706GitLab CE/EE repository commits API path traversal allows unauthenticated file readGitLab CE/EE contains improper path confinement and missing authentication enforcement in the repository commits API, allowing an unauthenticated use…KEVEPSS 91%analysed

Source: NIST National Vulnerability Database (record CVE-2020-8131), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.