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.
CVE-2021-4435
HIGHNVD 7.77.7—
EchelonGraph scoreMEDIUM confidence
This high-severity CVE scores 7.7 under NVD CVSS v3. EPSS exploit probability: 0.1%, top 84% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
Triggered by: NVD CVSS baseline
Sources: epss, nvd
7.7
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
- High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 7.7Exploit: NoneExposed: 0
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.7
- EG Score
- 7.7(medium)
- EPSS
- 21.9%
- KEV
- Not listed
Published
February 4, 2024
Last Modified
November 21, 2024
References (8)
- patrick@puiterwijkhttps://access.redhat.com/security/cve/CVE-2021-4435
- patrick@puiterwijkhttps://bugzilla.redhat.com/show_bug.cgi?id=2262284
- patrick@puiterwijkhttps://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1
- patrick@puiterwijkhttps://github.com/yarnpkg/yarn/releases/tag/v1.22.13
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/security/cve/CVE-2021-4435
- af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=2262284
- af854a3a-2127-422b-91ae-364da2661108https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1
- af854a3a-2127-422b-91ae-364da2661108https://github.com/yarnpkg/yarn/releases/tag/v1.22.13
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| yarn | — | 1.22.13 | — |
Frequently asked(5)
What is CVE-2021-4435?
CVE-2021-4435 is a high vulnerability published on February 4, 2024. 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.
When was CVE-2021-4435 disclosed?
CVE-2021-4435 was first published in the National Vulnerability Database on February 4, 2024, with the most recent update on November 21, 2024. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2021-4435 actively exploited?
CVE-2021-4435 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 21.9% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2021-4435?
CVE-2021-4435 has a CVSS v3 base score of 7.7 (NVD).
How do I remediate CVE-2021-4435?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2021-4435, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-4435
Is Your Infrastructure Affected by CVE-2021-4435?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.