solidity-map (npm) · Malicious Code
Affects solidity-mapSource GCVE Database
Malicious package : remove solidity-map 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-18696
What to do
Remove solidity-map 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-map | 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-map' npm package version 2.21.0 is a malicious supply-chain trojan masquerading as a utility related to vulnerability management. It contains code copied from the legitimate pino logging library but includes a heavily obfuscated and large (~4.3MB) module that executes upon package load, hiding its true malicious behavior. This package is a rebranded continuation of previous malicious campaigns known as hardhat-roof and chai-foundry, using the same payloads and file hashes. The malicious code runs silently on import or installation, posing a risk to users who unknowingly include it in their projects.