solidity-gas-watcher (npm) · Malicious Code
Affects solidity-gas-watcherSource GCVE Database
Malicious package : remove solidity-gas-watcher and rotate any secrets on hosts that installed it.
Data as of 13 Nov 2026, 05:28 UTC
Malicious package
Published to npm · OSV MAL-2026-18695
What to do
Remove solidity-gas-watcher 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 |
|---|---|---|
| npmsolidity-gas-watcher | 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 'solidity-gas-watcher' npm package version 2.21.0 is a malicious package that disguises itself as a utility for vulnerability management but contains obfuscated malware. It includes files copied from the pino logger project as cover and an obfuscated payload that executes automatically upon import without user interaction. The package also declares an unused axios dependency, likely for network communication by the malware. This package is part of a known campaign related to previous malicious packages 'hardhat-roof' and 'chai-foundry'.