hdkey-wallet (npm) · Malicious Code
Affects hdkey-walletSource GCVE Database
Malicious package : remove hdkey-wallet 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-13346
What to do
Remove hdkey-wallet 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 |
|---|---|---|
| npmhdkey-wallet | 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 hdkey-wallet npm package version 2.1.0 contains malicious code that exfiltrates environment variables and system information to an attacker-controlled Telegram bot. It masquerades as a drop-in replacement for the legitimate hdkey library, forwarding legitimate functionality while stealing sensitive credentials such as AWS, NPM, and GitHub tokens from process.env. The exfiltration occurs once per environment due to a temporary flag file. No official patch or remediation guidance is currently provided.