truffle-kit (npm) · Malicious Code
Affects truffle-kitSource GCVE Database
Malicious package : remove truffle-kit and rotate any secrets on hosts that installed it.
Data as of 20 Nov 2026, 09:25 UTC
Malicious package
Published to npm · OSV MAL-2026-20293
What to do
Remove truffle-kit 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 |
|---|---|---|
| npmtruffle-kit | 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 truffle-kit npm package version 3.3.2 is a malicious package masquerading as a pino-style logging middleware. It executes a hidden child process that fetches and runs remote code with full Node.js privileges, allowing arbitrary code execution on the host system. The package metadata is inconsistent and appears to be a typosquatting attempt to disguise its true purpose as a dropper.