Packages / yarn / Security

HighVulnerabilityGHSA-5xf4-f2fq-f69jCVE-2019-10773Published 14 Feb 2020

Yarn Improper link resolution before file access (Link Following)

Your version

Affected releases · yarn

  • 1.x1.0.0 – 1.21.1Fixed in 1.22.0
  • 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.0
Every release on a timeline
2.x
  1. Not affected

    2.4.3

    1 release

1.x
  1. Affected

    1.0.0 – 1.21.1

    40 releases

  2. Fixed

    1.22.0 – 1.22.22

    21 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

In Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host filesystem by using specially crafted "bin" keys. Existing files could be overwritten depending on the current user permission set.

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.