CVE-2021-4435

High

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.

SeverityHigh
CVSS7.7
Exploit probability—
ProductYarn
PublishedFeb 4, 2024
First seenFeb 4, 2024
Weakness typeCWE-426CWE-426

How to fix

Update
  • yarnpkg yarn1.22.13 or later
  • yarn1.22.13 or later

Affected products

ProductAffected versionsFixed in
yarnpkg yarnv < 1.22.131.22.13
yarnnpmv < 1.22.131.22.13

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.