CVE-2026-48995: pnpm: Tarball hash of GitHub git dependencies is not stored in lockfile

Published Jun 25, 2026
·
Updated

Summary

A malicious codeload.github.com server can serve whatever tarball it wants and pnpm will install it regardless of the lockfile.

Details

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.

PoC

sh > pnpm -v 10.28.2

Given the following package.json:

json { "dependencies": { "add": "git://github.com/dsherret/npm-git-dep.git#b3eeb9b" } }

This produces a lockfile like so:

yaml lockfileVersion: '9.0'

settings: autoInstallPeers: true excludeLinksFromLockfile: false

importers:

.: dependencies: add: specifier: git://github.com/dsherret/npm-git-dep.git#b3eeb9b version: https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b

packages:

add@https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b: resolution: {tarball: https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b} version: 1.0.0

snapshots:

add@https://codeload.github.com/dsherret/npm-git-dep/tar.gz/b3eeb9b: {}

Notice 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).

Impact

Anyone relying on github git dependencies.

Other sources

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.

NVD

Affected Software

7 affected componentsFixes available
pnpm>=0<=10.33.3
pnpm>=10.33.4<=10.33.4
pnpm>=10.33.3<=11.0.6
npm/pnpm>=11.0.0<11.0.7
11.0.7
npm/pnpm<10.33.4
10.33.4
PNPM Pnpm Node.js<10.33.4
PNPM Pnpm Node.js>=11.0.0<11.0.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/pnpm to a version that resolves this vulnerability.

    Fixed in 11.0.7
  2. Upgrade

    Upgrade npm/pnpm to a version that resolves this vulnerability.

    Fixed in 10.33.4
  3. Upgrade

    Upgrade pnpm to a version that resolves this vulnerability.

    Fixed in 10.33.4
  4. Upgrade

    Upgrade pnpm to a version that resolves this vulnerability.

    Fixed in 11.0.7

Event History

Jun 25, 2026
CVE Published
via MITRE·04:58 PM
Data Sourced
via MITRE·04:58 PM
DescriptionWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 26, 2026
Advisory Published
via GitHub·09:49 PM
Data Sourced
via GitHub·09:49 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-48995?

CVE-2026-48995 has a medium severity rating with a CVSS score of 4.8.

2

How can I mitigate CVE-2026-48995?

To mitigate CVE-2026-48995, ensure that GitHub tarball dependencies are sourced from trusted origins and consider manually verifying package integrity.

3

What impact does CVE-2026-48995 have on pnpm?

CVE-2026-48995 allows a malicious server to deliver compromised tarballs for GitHub git dependencies, which could lead to the installation of malicious code.

4

When was CVE-2026-48995 published?

CVE-2026-48995 was published on June 25, 2026.

5

Which software is affected by CVE-2026-48995?

CVE-2026-48995 affects the pnpm package manager and its interaction with npm/pnpm dependencies.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203