Skip to content
OpenAdvisories
High · 7.8 CVE-2019-10773 EUVD-2020-0291GHSA-5xf4-f2fq-f69j

Yarn Improper link resolution before file access (Link Following)

Published Dec 16, 2019 · Updated Aug 4, 2024 · Assigned by snyk

Description

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.

Affected products

VendorProductAffectedFixed
— Yarn All versions prior to version 1.21.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-yarnpkg 1.21.1-1 —
Debian 13 node-yarnpkg 1.21.1-1 —
Debian 12 node-yarnpkg 1.21.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS node-yarnpkg No fix yet —
Ubuntu 20.04 LTS node-yarnpkg No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling yarn 1.21.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm yarn < 1.22.0 1.22.0 GHSA-5xf4-f2fq-f69j

References