{"id":"CVE-2021-4435","aliases":["CLSA-2026-1786378841","CLSA-2026-1786471978","CLSA-2026-1786471987","DEBIAN-CVE-2021-4435","EUVD-2024-0674","GHSA-mpwj-fcr6-x34c","ROOT-APP-NPM-CVE-2021-4435","UBUNTU-CVE-2021-4435"],"status":"published","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.","severity":{"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00301,"percentile":0.23008,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-426"],"published":"2024-02-04T19:16:35Z","modified":"2026-10-23T18:04:50Z","fixes":[{"ecosystem":"npm","package":"yarn","fixed_in":["1.22.13"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"yarn","fixed_in":["1.22.1-tuxcare.1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"node-yarnpkg","fixed_in":["1.22.19+~cs24.27.18-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-yarnpkg","fixed_in":["1.22.19+~cs24.27.18-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-yarnpkg","fixed_in":["1.22.19+~cs24.27.18-1"],"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"},{"fixed":"1.22.13"}]}]},{"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.22.1-tuxcare.0"},{"fixed":"1.22.1-tuxcare.1"}]}],"versions":["1.22.1"]},{"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.19+~cs24.27.18-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.19+~cs24.27.18-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.19+~cs24.27.18-1"}]}]},{"source":"osv","ecosystem":"npm","package":"yarn","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.22.13"}]}]},{"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"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.0-1build1","1.13.0-3","1.19.1-1","1.22.4-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.22.10+~cs22.25.14-3","1.22.10+~cs22.25.14-4","1.22.10+~cs22.25.14-5","1.22.10+~cs22.25.14-8"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.22.19+~cs24.27.18-2","1.22.19+~cs24.27.18-4"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.2+dfsg-3","4.1.0+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.0+dfsg-1","4.1.0+dfsg-6ubuntu2","4.1.0+dfsg-7ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.0+dfsg-1"]}],"products":[{"vendor":"fedora","product":"extra packages for enterprise linux"},{"vendor":"fedora","product":"fedora"},{"vendor":"yarnpkg","product":"yarn"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2021-4435","tags":["vdb-entry","x_refsource_REDHAT","x_transferred","Third Party Advisory","advisory","web","report"]},{"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","report"]},{"url":"https://github.com/yarnpkg/yarn/releases/tag/v1.22.13","tags":["x_transferred","Release Notes","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4435","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mpwj-fcr6-x34c"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-4435","tags":["advisory"]},{"url":"https://github.com/yarnpkg/yarn","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-4435","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-4435","tags":["report"]}],"sources":{"cve":[{"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.","status":"published","published":"2024-02-04T19:16:35.651Z","modified":"2025-06-17T14:29:17.224Z","cvss":[{"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","level":"high","assessor":"cna"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T14:33:07.697752Z"}],"euvd":[{"id":"EUVD-2024-0674","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.","status":"published","published":"2024-02-04T19:16:35Z","modified":"2025-06-17T14:29:17Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T20:32:22.732364Z"}],"ghsa":[{"id":"GHSA-mpwj-fcr6-x34c","title":"Yarn untrusted search path vulnerability","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.","status":"published","published":"2024-02-04T21:30:43Z","modified":"2024-02-05T20:20:30Z","cvss":[{"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","level":"high"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T14:37:36.076201Z"}],"nvd":[{"id":"CVE-2021-4435","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.","status":"published","published":"2024-02-04T20:15:45.657Z","modified":"2026-06-17T04:19:45.067Z","cvss":[{"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","level":"high","assessor":"secondary"},{"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","level":"high","assessor":"primary"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T14:07:08.163458Z"}],"osv":[{"id":"CVE-2021-4435","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.","status":"published","published":"2024-02-04T20:15:45.657Z","modified":"2026-10-20T10:54:09.697380956Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:44:21.877444Z"},{"id":"DEBIAN-CVE-2021-4435","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.","status":"published","published":"2024-02-04T20:15:45.657Z","modified":"2026-10-23T18:04:50.22705937Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"GHSA-mpwj-fcr6-x34c","title":"Yarn untrusted search path vulnerability","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.","status":"published","published":"2024-02-04T21:30:43Z","modified":"2026-09-10T03:50:06.425385242Z","cvss":[{"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","level":"high"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T15:46:52.170928Z"},{"id":"UBUNTU-CVE-2021-4435","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.","status":"published","published":"2024-02-04T20:15:00Z","modified":"2026-10-17T12:55:47.478146293Z","cvss":[{"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","level":"high"},{"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","level":"high"}],"updated_at":"2026-11-02T15:54:29.220315Z"},{"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-1786471978","title":"TuxCare security update for yarn (1 CVE)","description":"TuxCare rebuilt yarn to address 1 CVE. Fixed in 1.22.1-tuxcare.1.","status":"published","published":"2026-08-11T18:12:58Z","modified":"2026-10-15T09:46:00.650415755Z","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-2021-4435","title":"CVE-2021-4435 in yarn - Patched by Root","description":"Root has patched CVE-2021-4435 in the yarn package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-10-07T11:20:08Z","modified":"2026-10-07T12:15:05.047578035Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
