Skip to main content
MalwarePublished

test-supply-npm-lib-4 (npm) · Malicious Code

Affects test-supply-npm-lib-4Source GCVE Database

0

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

Classification

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

ProductAffectedFixed in
npmtest-supply-npm-lib-4Affected
  • 3.3.3 – 3.3.6
4 affected builds
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.

References

Community reviews

Loading reviews…