CVE-2021-4435Yarnpkg Yarn
High 7.8
Follow: this CVE · Yarnpkg · Yarnpkg Yarn We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 20
- Auth required
- Yes
- Published
- Feb 4, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-426
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Yarn.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | yarn |
< 1.22.13 |
1.22.13 |
npm install yarn@1.22.13 |
Per OSV / GitHub Advisories (GHSA-mpwj-fcr6-x34c). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yarnpkg | yarn | < 1.22.13 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com Third Party Advisory
- bugzilla.redhat.com Issue Tracking
- github.com Patch
- github.com Release Notes