Skip to content
Heist/ feed
Back to feed
HighFix available

node-yarnpkg — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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
node-yarnpkg
Affected versions
Not specified
Fixed versions
1.22.4-2
CVEs
CVE-2020-8131
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 13:37 UTC · Revision 1

Source evidence

DEBIAN-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:DEBIAN-CVE-2020-8131

node-yarnpkg

Fixed versions: 1.22.4-2

node-yarnpkg

Fixed versions: 1.22.4-2

node-yarnpkg

Fixed versions: 1.22.4-2

Complete source record
{
  "id": "700a3aac0adddbd2b0b7ff5305518de2c7f855deffdce8119581e80dc143f9e5",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-8131",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-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:DEBIAN-CVE-2020-8131",
    "products": [
      {
        "name": {
          "value": "node-yarnpkg",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.22.4-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-yarnpkg",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.22.4-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-yarnpkg",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.22.4-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2020-8131",
      "aliases": [
        "DEBIAN-CVE-2020-8131"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.22.4-2"
                }
              ]
            }
          ],
          "package": {
            "name": "node-yarnpkg",
            "purl": "pkg:deb/debian/node-yarnpkg?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-8131.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.22.4-2"
                }
              ]
            }
          ],
          "package": {
            "name": "node-yarnpkg",
            "purl": "pkg:deb/debian/node-yarnpkg?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-8131.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.22.4-2"
                }
              ]
            }
          ],
          "package": {
            "name": "node-yarnpkg",
            "purl": "pkg:deb/debian/node-yarnpkg?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-8131.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T12:02:33.685867742Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-8131"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2020-8131"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-8131",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 452623,
  "published_at": "2020-02-24T15:15:12.02+00:00"
}