Skip to content
OpenAdvisories
High · 7.5 CVE-2020-8131 EUVD-2022-0922GHSA-8mfc-v7wv-p62g

Path Traversal in Yarn

Published Feb 24, 2020 · Updated Aug 4, 2024 · Assigned by hackerone

Description

Arbitrary filesystem write vulnerability in Yarn before 1.22.0 allows attackers to write to any path on the filesystem and potentially lead to arbitrary code execution by forcing the user to install a malicious package.

Affected products

VendorProductAffectedFixed
— yarn Fixed Version: 1.22.0 —

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.22.4-2 —
Debian 13 node-yarnpkg 1.22.4-2 —
Debian 12 node-yarnpkg 1.22.4-2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm yarn < 1.22.0 1.22.0 GHSA-8mfc-v7wv-p62g

References