{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "10.34.5"
              },
              {
                "introduced": "11.0.0"
              },
              {
                "fixed": "11.11.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "8aeeff4c46b939707fcb973c444c44809f691ef5"
            },
            {
              "fixed": "702ad5f860ffd50d64a3a711d9f8a3da16fc796e"
            },
            {
              "fixed": "8e1e4c0aaece387dfda16377b2ba31f7a1a2602c"
            },
            {
              "fixed": "51300fd41c5e4c8f47635108e373cc3d1f324fa7"
            },
            {
              "fixed": "78e29fe5583a1e5d69ea05e414eff310f78d5ed9"
            }
          ],
          "repo": "https://github.com/pnpm/pnpm",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c59q-g84q-2gj5"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82392.json"
  },
  "details": "pnpm is a package manager. Prior to 10.34.5 and from 11.0.0 until 11.11.0, pnpm parses the package name from attacker-controlled pnpm-lock.yaml packages keys with dp.parse(depPath).name and uses it without validation in deps/graph-builder/src/lockfileToDepGraph.ts and pnpm11/deps/graph-builder/src/lockfileToDepGraph.ts. The name reaches path.join(modules, pkgName), storeController.importPackage, and pnpm11/lockfile/to-pnp/src/index.ts, allowing package contents to be written outside node_modules when a user runs pnpm install. When dangerouslyAllowAllBuilds or a matching allowBuilds entry permits lifecycle scripts, the escaped package can execute code with the user's privileges. This issue is fixed in versions 10.34.5 and 11.11.0.",
  "id": "CVE-2026-82392",
  "modified": "2026-09-03T03:30:33.596362858Z",
  "published": "2026-08-31T21:03:25.652Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/pnpm/pnpm/releases/tag/v10.34.5"
    },
    {
      "type": "WEB",
      "url": "https://github.com/pnpm/pnpm/releases/tag/v11.11.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82392.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/pnpm/pnpm/security/advisories/GHSA-c59q-g84q-2gj5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-82392"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pnpm/pnpm/commit/51300fd41c5e4c8f47635108e373cc3d1f324fa7"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pnpm/pnpm/commit/78e29fe5583a1e5d69ea05e414eff310f78d5ed9"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pnpm/pnpm/pull/12872"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pnpm/pnpm/pull/12890"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraph"
}