CVE-2021-4435
HIGH 7.8CVSS 3.1Yarn untrusted search path vulnerability
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
- 4 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Modified
- Weakness
- CWE-426
- Also known as
- GHSA-mpwj-fcr6-x34c
- Sources
- NVDJSONOSV GHSA-mpwj-fcr6-x34cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | patrick@puiterwijk.org (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yarnpkg | yarncpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:* |
< 1.22.13 | 1.22.13 |
| OSV | npm | yarn | < 1.22.13 | 1.22.13 |
References
- https://access.redhat.com/security/cve/CVE-2021-4435 · Third Party Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2262284 · Issue Tracking, WEB
- https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 · Patch, WEB
- https://github.com/yarnpkg/yarn/releases/tag/v1.22.13 · Release Notes, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-4435 · ADVISORY
- https://github.com/yarnpkg/yarn · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 4 Feb 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Feb 2024)