{"id":"CVE-2026-48995","aliases":["CVE-2026-48995","GHSA-hg3w-7f8c-63hp"],"related":[],"kind":"vulnerability","state":"published","title":"pnpm: Tarball hash of GitHub git dependencies is not stored in lockfile","summary":"pnpm is a package manager. Prior to 10.33.4 and 11.0.7, a malicious codeload.github.com server can serve whatever tarball it wants and pnpm will install it regardless of the lockfile. The lockfile does not store the hash of the dependencies from https://codeload.github.com. This means that if this server was compromised or a person's machine configuration was compromised, pnpm would download and install these dependencies. This vulnerability is fixed in 10.33.4 and 11.0.7.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pnpm is a package manager. Prior to 10.33.4 and 11.0.7, a malicious codeload.github.com server can serve whatever tarball it wants and pnpm will install it regardless of the lockfile. The lockfile does not store the hash of the dependencies from https://codeload.github.com. This means that if this server was compromised or a person's machine configuration was compromised, pnpm would download and install these dependencies. This vulnerability is fixed in 10.33.4 and 11.0.7.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA malicious `codeload.github.com` server can serve whatever tarball it wants and pnpm will install it regardless of the lockfile.\n\n### Details\n\nThe lockfile does not store the hash of the dependencies from https://codeload.github.com\n\nThis means that if this server was compromised or a person's machine configuration was compromised, pnpm would download and install these dependencies.\n\n### PoC\n\n```sh\n> pnpm -v     \n10.28.2\n```\n\nGiven the following package.json:\n\n```json\n{\n  \"dependencies\": {\n    \"add\": \"git://github.com/dsherret/npm-git-dep.git#b3eeb9b\"\n  }\n}\n```\n\nThis produces a lockfile like so:\n\n```yaml\nlockfileVersion: '9.0'\n\nsettings:\n  autoInstallPeers: true\n  excludeLinksFromLockfile: false\n\nimporters:\n\n  .:\n    dependencies:\n      add:\n        specifier: git://github.com/dsherret/npm-git-dep.git#b3eeb9b\n        version: https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b\n\npackages:\n\n  add@https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b:\n    resolution: {tarball: https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b}\n    version: 1.0.0\n\nsnapshots:\n\n  add@https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b: {}\n```\n\nNotice that there is no hash. The `b3eeb9b` is not sufficient because I can configure my machine to resolve a compromised tarball from that url (I tested it out and pnpm just installs it).\n\n### Impact\n\nAnyone relying on github git dependencies.","format":"markdown","source":"ghsa"}],"published":"2026-06-25T16:58:57.536Z","modified":"2026-06-29T20:30:18.520Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-353"],"affected":[{"ranges":[{"version":"< 10.33.4","status":"affected"},{"version":">= 11.0.0, < 11.0.7","status":"affected"}],"vendor":"pnpm","product":"pnpm","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"10.33.4"}],"ecosystem":"npm","package":"pnpm","purl":"pkg:npm/pnpm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.0.7"}],"ecosystem":"npm","package":"pnpm","purl":"pkg:npm/pnpm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"10.33.4"},{"status":"affected","introduced":"11.0.0","fixed":"11.0.7"}],"vendor":"pnpm","product":"pnpm","cpe":"cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-hg3w-7f8c-63hp","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48995","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pnpm/pnpm","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-06-26T02:11:29.692Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48995","url":"https://www.cve.org/CVERecord?id=CVE-2026-48995","licence":"CVE Terms of Use","modified":"2026-06-26T02:11:55.249Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hg3w-7f8c-63hp","url":"https://github.com/advisories/GHSA-hg3w-7f8c-63hp","licence":"CC-BY-4.0","modified":"2026-06-26T22:11:31.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48995","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48995","licence":"Public domain","modified":"2026-06-29T20:30:18.520Z"}],"updatedAt":"2026-11-25T22:59:26.394Z","epss":{"score":0.00161,"percentile":0.05481,"date":"2026-12-01T12:00:22.000Z"}}