viem-toolkit (npm) · Malicious Code
Affects viem-toolkitSource GCVE Database
Malicious package : remove viem-toolkit and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 17:23 UTC
Malicious package
Published to npm · OSV MAL-2026-12495
What to do
Remove viem-toolkit 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 |
|---|---|---|
| npmviem-toolkit | 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 viem-toolkit npm package version 1.0.0 is a malicious package masquerading as a legitimate wallet extension. It exports a WalletKit constructor that captures private keys supplied by users along with host information and sends this sensitive data to a third-party endpoint controlled by the attacker. This results in immediate leakage of wallet keys to an unauthorized external server. The package metadata is incomplete and deceptive, aiming to exploit the reputation of the legitimate viem ecosystem to trick developers into using it.