Vulnerability · Published Feb 4, 2024 · Assigned by fedora
CVE-2021-4435Yarn: untrusted search path
High 7.7
In plain English
A high-severity security flaw in Extra Packages for Enterprise Linux from Fedora. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.7High
Exploit odds (30 days)0.3%top 77.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-yarnpkg | 1.22.19+~cs24.27.18-1 | DEBIAN-CVE-2021-4435 |
| Debian:13 | node-yarnpkg | 1.22.19+~cs24.27.18-1 | DEBIAN-CVE-2021-4435 |
| Debian:14 | node-yarnpkg | 1.22.19+~cs24.27.18-1 | DEBIAN-CVE-2021-4435 |
| Ubuntu:22.04:LTS | node-yarnpkg | no fix listed | UBUNTU-CVE-2021-4435 |
| Ubuntu:24.04:LTS | node-yarnpkg | no fix listed | UBUNTU-CVE-2021-4435 |
| Ubuntu:25.10 | node-yarnpkg | no fix listed | UBUNTU-CVE-2021-4435 |
| Ubuntu:26.04:LTS | node-yarnpkg | no fix listed | UBUNTU-CVE-2021-4435 |
| Ubuntu:26.10 | node-yarnpkg | no fix listed | UBUNTU-CVE-2021-4435 |
| npm | yarn | 1.22.13 | GHSA-mpwj-fcr6-x34c |
Affected products (as reported)
Weakness: CWE-426 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://access.redhat.com/security/cve/CVE-2021-4435 vdb-entry, x_refsource_REDHAT
- RHBZ#2262284 issue-tracking, x_refsource_REDHAT
- https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1
- https://github.com/yarnpkg/yarn/releases/tag/v1.22.13