GitHub Advisory Database
GHSA-mpwj-fcr6-x34c
Yarn untrusted search path vulnerability
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | yarn | All versions before 1.22.13 (fixed in 1.22.13) |
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
- https://github.com/yarnpkg/yarn/releases/tag/v1.22.13