hardhat-hold (npm) · Malicious Code
Affects hardhat-holdSource GCVE Database
Malicious package : remove hardhat-hold and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:18 UTC
Malicious package
Published to npm · OSV MAL-2026-14246
What to do
Remove hardhat-hold 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 |
|---|---|---|
| npmhardhat-hold | 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 hardhat-hold contains malicious code embedded in an obfuscated payload that executes immediately upon import. This payload includes capabilities to run shell commands and make outbound HTTP requests, typical of dropper malware used for code execution and data exfiltration. The package is a typosquatting attempt targeting the legitimate Ethereum tooling package hardhat, with misleading README and metadata to impersonate the pino logger. Two specific versions, 2.0.1 and 2.21.0, are affected. No official patch or remediation guidance is provided in the available data.