{"id":"CVE-2020-8131","aliases":["CVE-2020-8131","GHSA-8mfc-v7wv-p62g"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in Yarn","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 install a malicious package.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La vulnerabilidad de escritura arbitraria del sistema de archivos en Yarn antes de 1.22.0 permite a los atacantes escribir en cualquier ruta en el sistema de archivos y potencialmente conducir a la ejecución de código arbitrario al obligar al usuario a instalar un paquete malicioso.","source":"nvd"}],"published":"2020-02-24T14:41:23.000Z","modified":"2026-06-17T03:25:54.897Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"Fixed Version: 1.22.0","status":"affected"}],"product":"yarn","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.22.0"}],"ecosystem":"npm","package":"yarn","purl":"pkg:npm/yarn","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.21.1"}],"vendor":"yarnpkg","product":"yarn","cpe":"cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://hackerone.com/reports/730239","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yarnpkg/yarn/pull/7831","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-8131","url":"https://www.cve.org/CVERecord?id=CVE-2020-8131","licence":"CVE Terms of Use","modified":"2024-08-04T09:48:25.635Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8mfc-v7wv-p62g","url":"https://github.com/advisories/GHSA-8mfc-v7wv-p62g","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:13.896Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-8131","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8131","licence":"Public domain","modified":"2026-06-17T03:25:54.897Z"}],"updatedAt":"2026-11-25T22:57:50.959Z","epss":{"score":0.05159,"percentile":0.92622,"date":"2026-12-02T12:00:21.000Z"}}