test-pkg-pnpm (npm) · Malicious Code
Affects test-pkg-pnpmSource GCVE Database
Malicious package : remove test-pkg-pnpm and rotate any secrets on hosts that installed it.
Data as of 20 Aug 2026, 14:30 UTC
Malicious package
Published to npm · OSV MAL-2026-6716
What to do
Remove test-pkg-pnpm from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmtest-pkg-pnpm | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'test-pkg-pnpm' versions 1.0.0 through 1.0.4 contains malicious post-installation code that executes without user consent. Upon installation, it opens a GitHub page and launches the system calculator as proof of code execution. More critically, it recursively deletes node_modules directories and related files across ancestor directories and the user's home directory, and modifies package.json files by removing dependency entries. This destructive behavior compromises the integrity of the development environment and potentially the entire system. Removal of the package does not guarantee full remediation as the system may be fully compromised.
References
- npmjs.com/package/test-pkg-pnpm/v/1.0.1 (opens in a new tab)
- npmjs.com/package/test-pkg-pnpm/v/1.0.4 (opens in a new tab)
- github.com/advisories/GHSA-7grv-5j2w-4wx3 (opens in a new tab)
- npmjs.com/package/test-pkg-pnpm/v/1.0.2 (opens in a new tab)
- npmjs.com/package/test-pkg-pnpm/v/1.0.0 (opens in a new tab)
- npmjs.com/package/test-pkg-pnpm/v/1.0.3 (opens in a new tab)