web3-utils-crypto (npm) · Malicious Code
Affects web3-utils-cryptoSource GCVE Database
Malicious package : remove web3-utils-crypto and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 23:01 UTC
Malicious package
Published to npm · OSV MAL-2026-13354
What to do
Remove web3-utils-crypto 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 |
|---|---|---|
| npmweb3-utils-crypto | 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 npm package web3-utils-crypto impersonates the legitimate web3-utils library and includes stub wallet APIs that return non-functional values. When loaded, it collects extensive environment information including environment variables, system details, and package metadata, then exfiltrates this data via an HTTPS request to a Telegram bot controlled by the attacker. This can lead to leakage of sensitive credentials such as AWS keys, GitHub tokens, and database passwords from developer and CI environments. The malicious behavior is triggered on require(), and a temporary flag file prevents repeated data exfiltration. The affected version is 1.10.4.