Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. yarn
  4. ›
  5. CVE-2020-8131

CVE-2020-8131: Path Traversal

February 24, 2020 (updated March 24, 2020)

Arbitrary filesystem write vulnerability in Yarn 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2020-8131

Code Behaviors & Features

Detect and mitigate CVE-2020-8131 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.21.1

Fixed versions

  • 1.22.0

Solution

Upgrade to version 1.22.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/yarn/CVE-2020-8131.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:51 +0000.