Advisory

GHSA-5xf4-f2fq-f69j

Also known as: CVE-2019-10773, SNYK-JS-YARN-537806,

Summary

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-02-14 23:10 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

yarn

npm · All systems

Affected

  • introduced 0, fixed 1.22.0 (semver)

Fixed versions

1.22.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences