mini-hardhat (npm) · Malicious Code
Affects mini-hardhatSource GCVE Database
Malicious package : remove mini-hardhat and rotate any secrets on hosts that installed it.
Data as of 29 Sep 2026, 04:47 UTC
Malicious package
Published to npm · OSV MAL-2026-17236
What to do
Remove mini-hardhat 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 |
|---|---|---|
| npmmini-hardhat | 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 mini-hardhat version 1.1.4 contains malicious code that masquerades as a JSON logger but actually spawns a detached child process. This child process fetches and executes remote code from an obfuscated URL, enabling arbitrary code execution within the user's Node.js environment. The malicious behavior is engineered to persist beyond the parent process, making it a remote code execution dropper.