Packages / yarn / Security

HighVulnerabilityGHSA-mpwj-fcr6-x34cCVE-2021-4435Published 4 Feb 2024

Yarn untrusted search path vulnerability

Your version

Affected releases · yarn

  • 1.x1.0.0 – 1.22.12Fixed in 1.22.13
  • 0.28.x and older0.1.0 – 0.28.4No fix, no longer updated

On 1.x, the newest line:

npm install yarn@1.22.13
Every release on a timeline
2.x
  1. Not affected

    2.4.3

    1 release

1.x
  1. Affected

    1.0.0 – 1.22.12

    51 releases

  2. Fixed

    1.22.13 – 1.22.22

    10 releases, latest

0.x
  1. Affected

    0.1.0 – 0.28.4

    56 releases

118 stable releases of yarn, oldest to newest, one row per major.

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.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.