{"id":"CVE-2021-4435","aliases":["CVE-2021-4435","GHSA-mpwj-fcr6-x34c"],"related":[],"kind":"vulnerability","state":"published","title":"Yarn: untrusted search path","summary":"An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.","source":"cvelist"},{"lang":"es","text":"Se encontró una vulnerabilidad de ruta de búsqueda no confiable en Yarn. Cuando una víctima ejecuta ciertos comandos de Yarn en un directorio con contenido controlado por un atacante, se podrían ejecutar comandos maliciosos de formas inesperadas.","source":"nvd"}],"published":"2024-02-04T19:16:35.651Z","modified":"2026-09-10T03:50:06.425Z","severity":{"scorer":"fedora","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"fedora","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-426"],"affected":[{"ranges":[{"version":"1.22.13","status":"unaffected"}],"product":"yarn","source":"cvelist"},{"ranges":[],"vendor":"Fedora","product":"Fedora","package":"yarnpkg","source":"cvelist"},{"ranges":[],"vendor":"Fedora","product":"Extra Packages for Enterprise Linux","package":"yarnpkg","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.22.13"}],"ecosystem":"npm","package":"yarn","purl":"pkg:npm/yarn","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.22.13"}],"vendor":"yarnpkg","product":"yarn","cpe":"cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2021-4435","tags":["third-party-advisory","vdb-entry","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2262284","tags":["issue-tracking","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yarnpkg/yarn/releases/tag/v1.22.13","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4435","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yarnpkg/yarn","tags":["package"],"sources":["ghsa"]}],"credits":["Red Hat would like to thank Paul Gerste (Sonar) for reporting this issue."],"assigner":"fedora","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-06-17T14:29:04.160Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-4435","url":"https://www.cve.org/CVERecord?id=CVE-2021-4435","licence":"CVE Terms of Use","modified":"2025-06-17T14:29:17.224Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mpwj-fcr6-x34c","url":"https://github.com/advisories/GHSA-mpwj-fcr6-x34c","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:06.425Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-4435","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4435","licence":"Public domain","modified":"2026-06-17T04:19:45.067Z"}],"updatedAt":"2026-11-25T22:24:37.240Z","epss":{"score":0.00345,"percentile":0.3007,"date":"2026-12-01T12:00:22.000Z"}}