CVE-2021-4435Yarn: untrusted search path
- 7.7HighCVSS base score
- 0.30%Exploitation in 30 daysEPSS · top 77% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By fedora
- 3 days later
· 3 days later
Published
- 17 months later
· 17 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| fedoraCNA (assigner) | 3.1 | High7.7 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.30% · top 77% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.7.
Affected products
yarn
- unaffected 1.22.13
All versions: unaffected
Fedora · Extra Packages for Enterprise Linux
All versions: unaffected
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References4
- https://access.redhat.com/security/cve/CVE-2021-4435 (opens in a new tab)vdb-entryx_refsource_REDHATx_transferred
- RHBZ#2262284 (opens in a new tab)issue-trackingx_refsource_REDHATx_transferred
- https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 (opens in a new tab)x_transferred
- https://github.com/yarnpkg/yarn/releases/tag/v1.22.13 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0674 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mpwj-fcr6-x34c (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-4435)Record last updated .