CVE-2021-4435
7.7high
Yarn: untrusted search path
- Severity
- 7.7high CVSS:3.1 by fedora
- Exploit likelihood
- 0.34% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- fedora
- Also known as
- GHSA-mpwj-fcr6-x34c
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
| Product or package | Versions | Reported by |
|---|---|---|
| yarn | Not specified Not affected: 1.22.13 | CVE List |
| yarnpkg | Not specified | CVE List |
| yarn (npm) | before 1.22.13 | GitHub Advisory Database |
| yarnpkg yarn | before 1.22.13 | NVD |
All scores
| fedora | 7.7high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Se encontró una vulnerabilidad de ruta de búsqueda no confiable en Yarn. Cuando una víctima ejecuta ciertos comandos de Yarn en un directorio con contenido controlado por un atacante, se podrían ejecutar comandos maliciosos de formas inesperadas.
References
| https://access.redhat.com/security/cve/CVE-2021-4435 | third-party-advisory, vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2262284 | issue-tracking, web | |
| https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 | patch, web | |
| https://github.com/yarnpkg/yarn/releases/tag/v1.22.13 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-4435 | advisory | |
| https://github.com/yarnpkg/yarn | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-4435 changed 2025-06-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mpwj-fcr6-x34c changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-4435 changed 2026-06-17 | Public domain |