High · published January 8, 2026
⚡ An attacker can exploit pnpm's lockfile, serving different content every time a package is installed! Imagine committing a recipe but the chef changes the ingredients without telling you. 🍽️ It's like ordering a dish at a restaurant, but each time you visit, the chef swaps out key ingredients without informing you — one visit you get a delicious pasta, the next a mystery meat surprise! This means your project could behave differently based on who served your package, making it a risky gamble. An attacker could easily publish a package with a malicious HTTP tarball dependency, which would then allow them to deliver different, potentially harmful code to users or CI/CD systems. This could lead to anything from unwanted behavior in your application to a full-blown compromise of your environment, putting your users and data at risk!
It's like ordering a dish at a restaurant, but each time you visit, the chef swaps out key ingredients without informing you — one visit you get a delicious pasta, the next a mystery meat surprise! This means your project could behave differently based on who served your package, making it a risky gamble. Versions 10.26.2 and below of pnpm do not store integrity hashes for HTTP tarball dependencies in the lockfile, allowing attackers to modify the content served from the remote server with each installation, compromising the integrity of your package management.
An attacker could easily publish a package with a malicious HTTP tarball dependency, which would then allow them to deliver different, potentially harmful code to users or CI/CD systems. This could lead to anything from unwanted behavior in your application to a full-blown compromise of your environment, putting your users and data at risk! To protect your projects, upgrade pnpm to version 10.26.0 or later immediately. Additionally, audit your dependencies to ensure that no malicious packages are being used and consider using alternatives that enforce integrity checks for all dependencies. Don't forget to review your CI/CD pipelines for any outdated versions! You've got this! With these steps, you'll secure your projects and keep those sneaky ingredients off your plate! 🛡️
| Product | Versions | Fixed in |
|---|---|---|
| pnpm/pnpm | < 10.26.0 | 10.26.0 |