Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-8131

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-8131
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:30 UTC · Revision 1

Source evidence

CVE-2020-8131

core-osv · Original source

Published 24 Feb 2020, 15:15 UTC

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.

osv:CVE-2020-8131
Complete source record
{
  "id": "f554f14cd6da7dc1e2cb0e370d9e83c0124ddf2877b2d6c1356cccdad24d9991",
  "url": "https://osv.dev/vulnerability/CVE-2020-8131",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-8131",
    "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.",
    "evidence": "osv:CVE-2020-8131",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-8131",
      "aliases": [
        "CVE-2020-8131",
        "GHSA-8mfc-v7wv-p62g"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/yarnpkg/yarn",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "95186d5f61ea34de7be6c59b7cfb934cc3b31988"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.21.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.21.1",
            "v1.21.0",
            "v1.19.0",
            "v1.18.0",
            "v1.17.0",
            "v1.16.0",
            "v1.15.0",
            "v1.14.0",
            "v1.13.0",
            "v1.12.0",
            "v1.11.0",
            "v1.10.0",
            "v1.9.0",
            "v1.8.0",
            "v1.7.0",
            "v1.6.0",
            "v1.5.0",
            "v1.4.1",
            "v1.4.0",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.0",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v0.28.0",
            "v0.27.0",
            "v0.26.0",
            "v0.25.0",
            "v0.23.0",
            "v0.22.0",
            "v0.21.0",
            "v0.21.0-pre",
            "v0.20.0",
            "v0.19.0",
            "v0.20.0-0",
            "v0.18.0",
            "v0.17.0",
            "v0.18.0-0",
            "v0.19.0-0",
            "v0.17.0-0",
            "v0.15.0",
            "v0.15.1",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.0",
            "v0.9.0",
            "v0.8.0",
            "v0.7.1",
            "v0.7.0",
            "pre-release"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-8131.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:24.697943921Z",
      "provider": "osv",
      "references": [
        "https://github.com/yarnpkg/yarn/pull/7831",
        "https://hackerone.com/reports/730239"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-8131",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385317,
  "published_at": "2020-02-24T15:15:12.02+00:00"
}