confusion-pkg (npm) · Malicious Code
Affects confusion-pkgSource GCVE Database
Malicious package : remove confusion-pkg and rotate any secrets on hosts that installed it.
Data as of 2 Dec 2026, 08:20 UTC
Malicious package
Published to npm · OSV MAL-2026-20956
What to do
Remove confusion-pkg 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 |
|---|---|---|
| npmconfusion-pkg | 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 confusion-pkg npm package version 99.9.9 contains malicious code that executes automatically during installation. It runs a script that probes for specific filesystem flags and sends the results to a hardcoded external IP address without user consent. This behavior occurs silently at install time and is designed to exfiltrate local filesystem information.