Skip to main content
MalwarePublished Updated

solidity-cat (npm) · Malicious Code

Affects solidity-catSource GCVE Database

0

Malicious package : remove solidity-cat 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-18694

What to do

Remove solidity-cat 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-catAffected
  • =2.0.1
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-cat npm package contains malicious code that executes arbitrary code on the installer's machine by requiring and evaluating a file outside its package directory. It masquerades as a Solidity/Hardhat logger but includes unrelated code and a path traversal that loads a potentially attacker-controlled module from the installer's project tree. This behavior occurs silently on import or install without user awareness.

References

Community reviews

Loading reviews…