CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HHigh (7.5) in yarnpkg yarn. EPSS 5.2% estimated probability of exploitation activity in the next 30 days. Fixed in yarn 1.22.0.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:Hyarn (npm): fixed in 1.22.0Explain CVE-2020-8131 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8131?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8131?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8131 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| yarnpkg:yarn | through 1.21.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-8mfc-v7wv-p62g | npm | yarn | <1.22.0 | 1.22.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | node-yarnpkg | 1.22.4-2 | DEBIAN-CVE-2020-8131 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
Red Hat rates this Moderate.
Normally yarn allows packages to run postinstall scripts which can write arbitrary files to the users system. This vulnerability allows an attacker to better hide the attack and also allow arbitrary file write when postinstall scripts are disabled with the '--ignore-scripts' option of 'yarn install'.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Quay 3 | quay/clair-rhel8:v3.4.0-25 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-bridge-operator-bundle:v3.4.0-3 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-bridge-operator-rhel8:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-builder-qemu-rhcos-rhel8:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-builder-rhel8:v3.4.0-18 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-container-security-operator-bundle:v3.4.0-2 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-container-security-operator-rhel8:v3.4.0-2 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-openshift-bridge-rhel8-operator:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-operator-bundle:v3.4.0-89 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-operator-rhel8:v3.4.0-132 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-rhel8:v3.4.0-51 | Fixed 2021-02-04 | RHSA-2021:0420 |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8131.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.