CVE-2021-4435
Yarnpkg Yarn vulnerability
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 products
Yarn. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Yarnpkg Yarn runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 · Patch
- access.redhat.com/security/cve/CVE-2021-4435 · Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2262284
- github.com/yarnpkg/yarn/releases/tag/v1.22.13
- nvd.nist.gov/vuln/detail/CVE-2021-4435
- cve.org/CVERecord?id=CVE-2021-4435
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.