CVE-2021-4435: Yarnpkg Yarn

High severity, CVSS 7.8. EPSS: 0.3% chance of exploitation in the next 30 days.

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 products

  • Yarnpkg Yarn: before 1.22.13 (fixed in 1.22.13)

Published 2024-02-04. Last modified 2026-06-17.