VDB
KO
HIGH 7.8

GHSA-5xf4-f2fq-f69j

Yarn Improper link resolution before file access (Link Following)

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / yarn
Introduced in: 0 Fixed in: 1.22.0
Fix npm install yarn@1.22.0

References