{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-4435","id":"CVE-2021-4435","title":"Yarn: untrusted search path","description":"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.","descriptionLong":"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.","published":"2024-02-04T19:16:35.651Z","updated":"2026-10-20T10:54:09.697380956Z","reserved":"2024-02-01T14:23:02.896Z","status":"Modified","rejected":false,"assigner":"fedora","metric":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"fedora"},"metrics":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"fedora"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"puiterwijk.org"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["yarn","Fedora","Fedora Extra Packages for Enterprise Linux"],"affectedProducts":[{"vendor":"n/a","product":"yarn","defaultStatus":null,"versions":[{"version":"1.22.13","status":"unaffected"}],"platforms":[]},{"vendor":"Fedora","product":"Fedora","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Fedora","product":"Extra Packages for Enterprise Linux","defaultStatus":"unaffected","versions":[],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"yarn","purl":"pkg:npm/yarn","ranges":["<1.22.13"],"fixed":["1.22.13"],"advisory":"GHSA-mpwj-fcr6-x34c"}],"cwes":["CWE-426"],"aliases":["GHSA-mpwj-fcr6-x34c"],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2021-4435","tags":["vdb-entry","x_refsource_REDHAT","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2262284","tags":["issue-tracking","x_refsource_REDHAT","x_transferred","Issue Tracking","report","web"]},{"url":"https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/yarnpkg/yarn/releases/tag/v1.22.13","tags":["x_transferred","Release Notes","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4435","tags":["advisory"]},{"url":"https://github.com/yarnpkg/yarn","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00298,"epssPercentile":0.22896,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-4435","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4435","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-4435","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mpwj-fcr6-x34c","ok":true,"note":"GHSA-mpwj-fcr6-x34c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-4435","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}