High severity7.7NVD Advisory· Published Feb 4, 2024· Updated Jun 17, 2026
CVE-2021-4435
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
yarnnpm | < 1.22.13 | 1.22.13 |
Affected products
6- osv-coords3 versions
< 1.22.13-r0+ 2 more
- (no CPE)range: < 1.22.13-r0
- (no CPE)range: < 1.22.13-r0
- (no CPE)range: < 1.22.13
- Fedora/Extra Packages for Enterprise Linuxv5
Patches
Vulnerability mechanics
References
6- github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1nvdPatchWEB
- access.redhat.com/security/cve/CVE-2021-4435nvdThird Party AdvisoryWEB
- github.com/advisories/GHSA-mpwj-fcr6-x34cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-4435ghsaADVISORY
- bugzilla.redhat.com/show_bug.cginvdIssue TrackingWEB
- github.com/yarnpkg/yarn/releases/tag/v1.22.13nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.