VDB
Sign up
HIGH7.8

GHSA-5xf4-f2fq-f69j

Yarn Improper link resolution before file access (Link Following)

Quick fix

GHSA-5xf4-f2fq-f69j — yarn: upgrade to the fixed version with the command below.

npm install yarn@1.22.0

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: 0Fixed in: 1.22.0
Fixnpm install yarn@1.22.0

References