test-supply-npm-lib-4 (npm) · Malicious Code
Affects test-supply-npm-lib-4Source GCVE Database
Malicious package : remove test-supply-npm-lib-4 and rotate any secrets on hosts that installed it.
Data as of 30 Sep 2026, 16:38 UTC
Malicious package
Published to npm · OSV MAL-2026-17314
What to do
Remove test-supply-npm-lib-4 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-supply-npm-lib-4 | 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 test-supply-npm-lib-4 package declares a dependency via a git URL pointing to a GitHub repository controlled by an individual account rather than the official npm registry. This dependency includes lifecycle scripts, such as a prepare hook, that run automatically during npm install. Because the code is fetched directly from GitHub and not vetted through the npm registry, it poses a risk of executing malicious code on the installer's machine.