CVE-2020-8131
JavaScript vulnerability analysis and mitigation

Overview

An arbitrary filesystem write vulnerability was discovered in Yarn package manager versions before 1.22.0. The vulnerability, identified as CVE-2020-8131, was disclosed on February 24, 2020. This security flaw affects the package fetching functionality in Yarn, potentially impacting systems using vulnerable versions of the package manager (NVD).

Technical details

The vulnerability allows attackers to write files to arbitrary locations on the filesystem during the yarn install process. This issue was particularly concerning for users who rely on the --ignore-scripts flag for security, as it bypassed intended filesystem restrictions. The vulnerability was addressed through a security patch that was merged into the master branch of the Yarn repository (GitHub PR).

Impact

The vulnerability could allow malicious actors to write files to any location on the target filesystem during package installation. This could potentially lead to system compromise, especially in environments where Yarn is used with elevated privileges or in automated deployment pipelines (Red Hat CVE).

Mitigation and workarounds

The vulnerability was fixed in Yarn version 1.22.0. Users are advised to upgrade to this version or later to mitigate the risk. The fix was implemented through a security patch that addresses the arbitrary file write issue during package fetching (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-22028HIGH7.2
  • JavaScriptJavaScript
  • preact
NoYesJan 07, 2026
CVE-2025-9611HIGH7.2
  • JavaScriptJavaScript
  • @playwright/mcp
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management