{"id":"CVE-2020-8131","aliases":["CLSA-2026-1786378841","CLSA-2026-1786471987","DEBIAN-CVE-2020-8131","EUVD-2022-0922","GHSA-8mfc-v7wv-p62g","ROOT-APP-NPM-CVE-2020-8131","UBUNTU-CVE-2020-8131"],"status":"published","title":"Path Traversal in Yarn","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.05159,"percentile":0.92491,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2020-02-24T14:41:23Z","modified":"2026-10-26T12:02:33Z","fixes":[{"ecosystem":"npm","package":"yarn","fixed_in":["1.22.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-yarnpkg","fixed_in":["1.22.4-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-yarnpkg","fixed_in":["1.22.4-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-yarnpkg","fixed_in":["1.22.4-2"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"yarn","fixed_in":["1.21.1-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/yarn","fixed_in":["1.21.1-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.21.1"},{"fixed":"1.22.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.15.2-tuxcare.0"},{"fixed":"1.15.2-tuxcare.1"}]}],"versions":["1.15.2"],"bundled":5},{"source":"osv","ecosystem":"TuxCare:npm","package":"yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.21.0-tuxcare.0"},{"fixed":"1.21.0-tuxcare.1"}]}],"versions":["1.21.0"],"bundled":3},{"source":"osv","ecosystem":"Debian:12","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}]},{"source":"osv","ecosystem":"npm","package":"yarn","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.22.0"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.1-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.1-root.io.1"}]}]}],"products":[{"vendor":"yarnpkg","product":"yarn"}],"references":[{"url":"https://hackerone.com/reports/730239","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"https://github.com/yarnpkg/yarn/pull/7831","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8mfc-v7wv-p62g"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-8131","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-8131","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-8131","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-8131","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.","status":"published","published":"2020-02-24T14:41:23Z","modified":"2024-08-04T09:48:25.635Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:35:50.88562Z"}],"euvd":[{"id":"EUVD-2022-0922","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.","status":"published","published":"2020-02-24T14:41:23Z","modified":"2024-08-04T09:48:25Z","updated_at":"2026-11-03T03:07:58.055641Z"}],"ghsa":[{"id":"GHSA-8mfc-v7wv-p62g","title":"Path Traversal in Yarn","description":"Arbitrary filesystem write vulnerability in Yarn 1.21.1 and earlier 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.","status":"published","published":"2022-02-09T22:43:37Z","modified":"2023-02-01T05:05:26Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:34.260786Z"}],"nvd":[{"id":"CVE-2020-8131","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.","status":"published","published":"2020-02-24T15:15:12.02Z","modified":"2026-06-17T03:25:54.897Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:05:54.796125Z"}],"osv":[{"id":"CVE-2020-8131","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.","status":"published","published":"2020-02-24T15:15:12.02Z","modified":"2026-10-20T10:54:24.697943921Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:17.663289Z"},{"id":"DEBIAN-CVE-2020-8131","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.","status":"published","published":"2020-02-24T15:15:12.02Z","modified":"2026-10-26T12:02:33.685867742Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.311861Z"},{"id":"GHSA-8mfc-v7wv-p62g","title":"Path Traversal in Yarn","description":"Arbitrary filesystem write vulnerability in Yarn 1.21.1 and earlier 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.","status":"published","published":"2022-02-09T22:43:37Z","modified":"2023-11-08T04:04:13.896005Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:42.437513Z"},{"id":"UBUNTU-CVE-2020-8131","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.","status":"withdrawn","published":"2020-02-24T15:15:00Z","modified":"2025-07-16T06:30:47.920617Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:25.728622Z"},{"id":"CLSA-2026-1786378841","title":"TuxCare security update for yarn (5 CVEs)","description":"TuxCare rebuilt yarn to address 5 CVEs. Fixed in 1.15.2-tuxcare.1.","status":"published","published":"2026-08-10T16:20:41Z","modified":"2026-10-15T09:46:00.652464848Z","updated_at":"2026-11-02T15:43:46.850893Z"},{"id":"CLSA-2026-1786471987","title":"TuxCare security update for yarn (3 CVEs)","description":"TuxCare rebuilt yarn to address 3 CVEs. Fixed in 1.21.0-tuxcare.1.","status":"published","published":"2026-08-11T18:13:07Z","modified":"2026-10-15T09:45:59.896663024Z","updated_at":"2026-11-02T15:43:46.850893Z"},{"id":"ROOT-APP-NPM-CVE-2020-8131","title":"CVE-2020-8131 in yarn - Patched by Root","description":"Root has patched CVE-2020-8131 in the yarn package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-10-07T11:20:08Z","modified":"2026-10-07T12:15:03.56478783Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
