Open-source package vulnerability · npm
CVE-2021-4435: Yarn untrusted search path vulnerability
highCVSS 3.1 7.7GHSA-mpwj-fcr6-x34c
An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.
Published Feb 4, 2024 · Updated Feb 5, 2024
Affected packages
yarn
- Ecosystem
- npm
- Affected
- < 1.22.13
- Fixed in
- 1.22.13
- Check
npm ls yarn
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-4435
- https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1
- https://access.redhat.com/security/cve/CVE-2021-4435
- https://bugzilla.redhat.com/show_bug.cgi?id=2262284
- https://github.com/yarnpkg/yarn/releases/tag/v1.22.13
- https://github.com/advisories/GHSA-mpwj-fcr6-x34c
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
