Path traversal in yarn
Priority MEDIUM 41CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
EPSS 0.05159 92nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed yarn (npm): 1.22.0Red Hat: 1 advisory
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | yarn | Fixed Version: 1.22.0 | — | No fix listed | CNA |
| — | yarn (npm) | before 1.22.0 | 1.22.0 | Patch available | GHSA-8mfc-v7wv-p62g |
- yarn Vendor— Affected Fixed Version: 1.22.0 Fixed in — No fix listed CNA
- yarn (npm) Vendor— Affected before 1.22.0 Fixed in 1.22.0 Patch available GHSA-8mfc-v7wv-p62g
Remediation
- Fix · GHSA-8mfc-v7wv-p62g yarn (npm) Fixed in 1.22.0 Advisory →
Red Hat 1 advisory
- RHSA-2021:0420 Released 2021-02-04 · Red Hat rating ModerateRed Hat Quay v3.4.0 security update
- Quay v3 quay/clair-rhel8, quay/quay-bridge-operator-bundle, quay/quay-bridge-operator-rhel8 +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Quay v3 | Fixed | RHSA-2021:0420 |
Timeline
- 2026-10-02 Threatist record created from CVE-2020-8131
- 2026-10-03 Alias added: GHSA-8mfc-v7wv-p62g
References
More yarnpkg Yarn vulnerabilities
- TI-2025-07562 yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos CVSS 4.0MEDIUM 5.3
- TI-2025-08532 yarnpkg Yarn request-manager.js setOptions redos CVSS 4.0MEDIUM 4.8
- TI-2019-08038 Link following in Yarn CVSS 3.1HIGH 7.8
- TI-2021-03291 Yarn: untrusted search path CVSS 3.1HIGH 7.8
- TI-2019-03856 Cleartext transmission of sensitive information in yarn CVSS 3.1HIGH 8.1
- TI-2019-11707 Time-of-check time-of-use race condition in yarn CVSS 3.1MEDIUM 5.9
Sources
- CVE-2020-8131 · CVE Program
- CVE-2020-8131 · NVD
- FIRST EPSS
- GHSA-8mfc-v7wv-p62g · GitHub Advisory Database · CC BY 4.0
- CVE-2020-8131 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences