CVE-2021-4435
CVE-2021-4435 is a high-severity vulnerability in Yarnpkg Yarn with a CVSS 3.x base score of 7.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-426.
Key facts
- Severity: High (CVSS 3.x base score 7.7)
- EPSS exploit prediction: 0% (22nd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0674
- Weakness: CWE-426
- Affected product: Yarnpkg Yarn
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2021-4435?
- 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.
- How severe is CVE-2021-4435?
- CVE-2021-4435 has a CVSS 3.x base score of 7.7, rated high severity. It is exploitable over local access with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-4435 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (22nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-4435?
- CVE-2021-4435 affects Yarnpkg Yarn. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-4435?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2021-4435 have an EU (EUVD) identifier?
- Yes. CVE-2021-4435 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0674.
- When was CVE-2021-4435 published?
- CVE-2021-4435 was published on 2024-02-04 and last updated on 2026-06-17.
References
- https://access.redhat.com/security/cve/CVE-2021-4435
- https://bugzilla.redhat.com/show_bug.cgi?id=2262284
- https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1
- https://github.com/yarnpkg/yarn/releases/tag/v1.22.13
Affected products (1)
- cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*
More vulnerabilities in Yarnpkg Yarn
- CVE-2019-5448 — High (CVSS 8.1): Yarn before 1.17.3 is vulnerable to Missing Encryption of Sensitive Data due to HTTP URLs in lockfile causing…
- CVE-2019-10773 — High (CVSS 7.8): In Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host…
- CVE-2020-8131 — High (CVSS 7.5): Arbitrary filesystem write vulnerability in Yarn before 1.22.0 allows attackers to write to any path on the filesystem…
- CVE-2019-15608 — Medium (CVSS 5.9): The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before…
- CVE-2025-8262 — Medium (CVSS 4.3): A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the…
- CVE-2025-9308 — Low (CVSS 3.3): A vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file…
All CVEs affecting Yarnpkg Yarn →
Other CWE-426 (Untrusted Search Path) vulnerabilities
- CVE-2026-45772 — Critical (CVSS 9.8): Turborepo is a high-performance build system for JavaScript and TypeScript codebases. From 1.1.0 to before 2.9.14,…
- CVE-2025-26155 — Critical (CVSS 9.8): NCP Secure Enterprise Client 13.18 and NCP Secure Entry Windows Client 13.19 have an Untrusted Search Path…
- CVE-2024-53866 — Critical (CVSS 9.8): The package manager pnpm prior to version 9.15.0 seems to mishandle overrides and global cache: Overrides from one…
- CVE-2024-38462 — Critical (CVSS 9.8): iRODS before 4.3.2 provides an msiSendMail function with a problematic dependency on the mail binary, such as in the…
- CVE-2023-30330 — Critical (CVSS 9.8): SoftExpert (SE) Excellence Suite 2.x versions before 2.1.3 is vulnerable to Local File Inclusion in the function…
- CVE-2022-24826 — Critical (CVSS 9.8): On Windows, if Git LFS operates on a malicious repository with a `..exe` file as well as a file named `git.exe`, and…
Browse all CWE-426 (Untrusted Search Path) vulnerabilities →