CVE-2021-4435
published high CVSS 3.1 · 7.7Yarn: untrusted search path
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- fedora · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | yarn | 1.22.13 (unaffected) | fedora · cna |
| Fedora | Fedora | Default: unaffected | fedora · cna |
| Fedora | Extra Packages for Enterprise Linux | Default: unaffected | fedora · cna |
Weaknesses
1- CWE-426 Untrusted Search Path
References
4- https://access.redhat.com/security/cve/CVE-2021-4435
- RHBZ#2262284 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
Provider assertions
3fedora · cna
Yarn: untrusted search path
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1174a4685a949d4a4ecd5361771f99ce281d78a4c69f25048c919935b006f4d0
- Ingested
- 23 Sep 2026, 07:57:25 UTC
- Source record
- Official CVE record