CVE-2021-4435
JSON

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 packageVersionsReported by
yarnNot specified
Not affected: 1.22.13
CVE List
yarnpkgNot specifiedCVE List
yarn (npm)before 1.22.13GitHub Advisory Database
yarnpkg yarnbefore 1.22.13NVD

All scores

fedora7.7high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
GitHub7.7high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-426

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

Sources

SourceRecordLicence
CVE ListCVE-2021-4435 changed 2025-06-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-mpwj-fcr6-x34c changed 2026-09-10CC-BY-4.0
NVDCVE-2021-4435 changed 2026-06-17Public domain