CVE-2020-8131: Path Traversal

Published Feb 14, 2020
·
Updated

An arbitrary file write flaw was found in Yarn. This flaw allows an attacker to write files to a user’s system in unexpected places, potentially leading to remote code execution. The attacker would need to first trick a developer into installing a malicious package.

Other sources

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.

Affected Software

2 affected componentsFixes available
redhat/yarn<1.22
1.22
yarnpkg yarn<=1.21.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/yarn to a version that resolves this vulnerability.

    Fixed in 1.22
  2. Upgrade

    Upgrade yarnpkg/yarn to a version that resolves this vulnerability.

    Fixed in 1.22.0

Event History

Feb 14, 2020
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 24, 2020
CVE Published
via MITRE·02:41 PM
Data Sourced
via MITRE·02:41 PM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-8131?

CVE-2020-8131 is an arbitrary filesystem write vulnerability in Yarn before version 1.22.0.

2

What is the severity of CVE-2020-8131?

The severity of CVE-2020-8131 is high (severity value: 7).

3

How does CVE-2020-8131 allow attackers to write files?

CVE-2020-8131 allows attackers to write files to a user's system in unexpected places potentially leading to remote code execution.

4

How can an attacker exploit CVE-2020-8131?

An attacker would need to trick a developer into installing a malicious package to exploit CVE-2020-8131.

5

How can I fix CVE-2020-8131?

To fix CVE-2020-8131, update Yarn to version 1.22.0 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203