Live threats

All CVEs / Yarnpkg

CVE-2021-4435Yarnpkg Yarn

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.3%
probability of exploitation in 30 days · percentile 20
Auth required
Yes
Published
Feb 4, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-426
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yarn.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm yarn < 1.22.13 1.22.13 npm install yarn@1.22.13

Per OSV / GitHub Advisories (GHSA-mpwj-fcr6-x34c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
yarnpkgyarn< 1.22.13

Official sources

References

Links published by the sources. Open them with care.