Skip to main content
MalwarePublished Updated

web3-eth-utils (npm) · Malicious Code

Affects web3-eth-utilsSource GCVE Database

0

Malicious package : remove web3-eth-utils and rotate any secrets on hosts that installed it.

Data as of 15 Jul 2026, 12:52 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6326

What to do

Remove web3-eth-utils 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
npmweb3-eth-utilsAffected
  • =6.2.8
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 web3-eth-utils version 6.2.8 is a malicious package impersonating the legitimate ethereumjs-util library. It contains injected code that requires a malicious dependency 'assertcore', which executes arbitrary code at install or require time. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated. Removal of the package alone may not eliminate the compromise due to potential persistent malicious code.

References

Community reviews

Loading reviews…