{"id":"CVE-2020-8131","aliases":["DEBIAN-CVE-2020-8131","GHSA-8mfc-v7wv-p62g","UBUNTU-CVE-2020-8131"],"summary":"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 instal...","published_at":"2020-02-14T00:00:00Z","modified_at":"2026-10-26T12:02:33.685867Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.051589999347925186,"percentile":0.92603999376297,"date":"2026-11-19T00:00:00Z"},"priority":9,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"Debian:12","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"fixed":["1.22.4-2"],"provider":"osv","source":"DEBIAN-CVE-2020-8131","relation":"self"},{"ecosystem":"Debian:13","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"fixed":["1.22.4-2"],"provider":"osv","source":"DEBIAN-CVE-2020-8131","relation":"self"},{"ecosystem":"Debian:14","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"fixed":["1.22.4-2"],"provider":"osv","source":"DEBIAN-CVE-2020-8131","relation":"self"},{"ecosystem":"NVD","package":"yarnpkg:yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.21.1"}]}],"provider":"nvd","source":"CVE-2020-8131","relation":"self"},{"ecosystem":"TuxCare:npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.15.2-tuxcare.0"},{"fixed":"1.15.2-tuxcare.1"}]}],"versions":["1.15.2"],"fixed":["1.15.2-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1786378841","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.21.0-tuxcare.0"},{"fixed":"1.21.0-tuxcare.1"}]}],"versions":["1.21.0"],"fixed":["1.21.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1786471987","relation":"upstream"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-yarnpkg","purl":"pkg:deb/ubuntu/node-yarnpkg@1.22.4-2?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"versions":["1.13.0-1build1","1.13.0-3","1.19.1-1"],"fixed":["1.22.4-2"],"provider":"osv","source":"UBUNTU-CVE-2020-8131","relation":"self"},{"ecosystem":"npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.22.0"}]}],"fixed":["1.22.0"],"provider":"osv","source":"GHSA-8mfc-v7wv-p62g","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"fixed","packages":["quay/clair-rhel8","quay/quay-bridge-operator-bundle","quay/quay-bridge-operator-rhel8","quay/quay-builder-qemu-rhcos-rhel8","quay/quay-builder-rhel8","quay/quay-container-security-operator-bundle","quay/quay-container-security-operator-rhel8","quay/quay-openshift-bridge-rhel8-operator","quay/quay-operator-bundle","quay/quay-operator-rhel8","quay/quay-rhel8"],"package_count":11,"fixed":[],"advisories":["RHSA-2021:0420"],"provider":"redhat-vex","source":"CVE-2020-8131"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1786378841","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1786378841","published_at":"2026-08-10T16:20:41Z","modified_at":"2026-10-15T09:46:00.652464Z","summary":"TuxCare security update for yarn (5 CVEs)","details":"TuxCare rebuilt yarn to address 5 CVEs. Fixed in 1.15.2-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.15.2-tuxcare.0"},{"fixed":"1.15.2-tuxcare.1"}]}],"versions":["1.15.2"],"fixed":["1.15.2-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1786378841","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1786471987","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1786471987","published_at":"2026-08-11T18:13:07Z","modified_at":"2026-10-15T09:45:59.896663Z","summary":"TuxCare security update for yarn (3 CVEs)","details":"TuxCare rebuilt yarn to address 3 CVEs. Fixed in 1.21.0-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.21.0-tuxcare.0"},{"fixed":"1.21.0-tuxcare.1"}]}],"versions":["1.21.0"],"fixed":["1.21.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1786471987","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2020-8131","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2020-8131","license":"CC-BY-4.0","published_at":"2020-02-24T14:41:23Z","modified_at":"2024-08-04T09:48:25.635Z","summary":"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 instal...","details":"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":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://hackerone.com/reports/730239"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/pull/7831"}]},{"provider":"nvd","source_id":"CVE-2020-8131","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131","severity":[],"affected":[{"ecosystem":"NVD","package":"yarnpkg:yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.21.1"}]}],"provider":"nvd","source":"CVE-2020-8131","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2020-8131","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2020-8131","published_at":"2020-02-24T15:15:12.02Z","modified_at":"2026-10-26T12:02:33.685867Z","details":"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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2020-8131"}],"affected":[{"ecosystem":"Debian:12","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"fixed":["1.22.4-2"],"provider":"osv","source":"DEBIAN-CVE-2020-8131","relation":"self"},{"ecosystem":"Debian:13","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"fixed":["1.22.4-2"],"provider":"osv","source":"DEBIAN-CVE-2020-8131","relation":"self"},{"ecosystem":"Debian:14","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"fixed":["1.22.4-2"],"provider":"osv","source":"DEBIAN-CVE-2020-8131","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2020-8131"}]},{"provider":"osv","source_id":"GHSA-8mfc-v7wv-p62g","relation":"self","url":"https://osv.dev/vulnerability/GHSA-8mfc-v7wv-p62g","license":"CC-BY-4.0","published_at":"2022-02-09T22:43:37Z","modified_at":"2023-11-08T04:04:13.896005Z","summary":"Path Traversal in Yarn","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GHSA-8mfc-v7wv-p62g"}],"affected":[{"ecosystem":"npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.22.0"}]}],"fixed":["1.22.0"],"provider":"osv","source":"GHSA-8mfc-v7wv-p62g","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/pull/7831"},{"type":"WEB","url":"https://hackerone.com/reports/730239"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2020-8131","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2020-8131","license":"CC-BY-SA-4.0","published_at":"2020-02-24T15:15:00Z","modified_at":"2025-07-16T06:30:47.920617Z","withdrawn_at":"2025-07-18T16:45:44Z","details":"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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2020-8131"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2020-8131"}],"affected":[{"ecosystem":"Ubuntu:20.04:LTS","package":"node-yarnpkg","purl":"pkg:deb/ubuntu/node-yarnpkg@1.22.4-2?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.4-2"}]}],"versions":["1.13.0-1build1","1.13.0-3","1.19.1-1"],"fixed":["1.22.4-2"],"provider":"osv","source":"UBUNTU-CVE-2020-8131","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-8131"},{"type":"REPORT","url":"https://hackerone.com/reports/730239"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-8131"}]},{"provider":"redhat-vex","source_id":"CVE-2020-8131","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2020-8131","license":"CC-BY-4.0","published_at":"2020-02-14T00:00:00Z","modified_at":"2021-02-16T20:25:00Z","summary":"yarn: Arbitrary filesystem write via tar expansion","details":"An arbitrary file write flaw was found in Yarn. This flaw allows an attacker to write files to a user’s system in unexpected places, potentially leading to remote code execution. The attacker would need to first trick a developer into installing a malicious package.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2020-8131"},{"type":"Red Hat","score":"Moderate","source":"CVE-2020-8131"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"fixed","packages":["quay/clair-rhel8","quay/quay-bridge-operator-bundle","quay/quay-bridge-operator-rhel8","quay/quay-builder-qemu-rhcos-rhel8","quay/quay-builder-rhel8","quay/quay-container-security-operator-bundle","quay/quay-container-security-operator-rhel8","quay/quay-openshift-bridge-rhel8-operator","quay/quay-operator-bundle","quay/quay-operator-rhel8","quay/quay-rhel8"],"package_count":11,"fixed":[],"advisories":["RHSA-2021:0420"],"provider":"redhat-vex","source":"CVE-2020-8131"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-8131.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2020-8131"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1816261"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2020-8131"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131"}]}],"references":[{"type":"WEB","url":"https://hackerone.com/reports/730239"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/pull/7831"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2020-8131"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-8131"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-8131"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-8131.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2020-8131"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1816261"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1786378841","url":"https://osv.dev/vulnerability/CLSA-2026-1786378841","modified_at":"2026-10-15T09:46:00.652464Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1786471987","url":"https://osv.dev/vulnerability/CLSA-2026-1786471987","modified_at":"2026-10-15T09:45:59.896663Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2020-8131","url":"https://www.cve.org/CVERecord?id=CVE-2020-8131","license":"CC-BY-4.0","modified_at":"2024-08-04T09:48:25.635Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2020-8131","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2020-8131","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2020-8131","modified_at":"2026-10-26T12:02:33.685867Z","relation":"self"},{"provider":"osv","source_id":"GHSA-8mfc-v7wv-p62g","url":"https://osv.dev/vulnerability/GHSA-8mfc-v7wv-p62g","license":"CC-BY-4.0","modified_at":"2023-11-08T04:04:13.896005Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2020-8131","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2020-8131","license":"CC-BY-SA-4.0","modified_at":"2025-07-16T06:30:47.920617Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2020-8131","url":"https://access.redhat.com/security/cve/CVE-2020-8131","license":"CC-BY-4.0","modified_at":"2021-02-16T20:25:00Z","relation":"self"}]}
