Read the docs
TI-2020-06549 Aliases CVE-2020-8131GHSA-8mfc-v7wv-p62g

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

VendorProductAffected versionsFixed inStatusSource
—yarnFixed Version: 1.22.0—No fix listedCNA
—yarn (npm)before 1.22.01.22.0Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*up to 1.21.1Vulnerableyarnpkg
  • cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:* Versions up to 1.21.1 Vulnerable ·yarnpkg

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 Moderate
    Red 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 →

ProductStatusPlan or fix
Quay v3Fixed RHSA-2021:0420

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-8131
  2. 2026-10-03 Alias added: GHSA-8mfc-v7wv-p62g

References

  • 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