Skip to main content
MalwarePublished Updated

solidity-map (npm) · Malicious Code

Affects solidity-mapSource GCVE Database

0

Malicious package : remove solidity-map and rotate any secrets on hosts that installed it.

Data as of 13 Nov 2026, 05:28 UTC

Classification

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

ProductAffectedFixed in
npmsolidity-mapAffected
  • =2.21.0
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.

References

Community reviews

Loading reviews…