Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in web3-eth-util (npm)

0
Critical
Published: 06/23/2026 (06/23/2026, 15:55:58 UTC)
Source: GCVE Database
Product: web3-eth-util

Description

The web3-eth-util npm package version 6.2.8 is a malicious package impersonating the legitimate ethereumjs-util package. It copies legitimate metadata and README content but injects a hidden runtime dependency on a third-party package 'assertcore' only in the Node.js build, which is not present in the source repository. This dependency-chain dropper pattern delivers attacker-controlled code with full privileges when the package is installed and imported. Systems with this package installed should be considered fully compromised.

Affected software

npmghsa
web3-eth-util
Affected versions
=6.2.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 12:53:05 UTC

Technical Analysis

The malicious web3-eth-util package version 6.2.8 impersonates the legitimate ethereumjs-util package by copying its README, contributor list, and repository URL, but is published under a different name and ownership. The package's Node-targeted build injects a require call to 'assertcore', a third-party package resembling a typosquat of the standard 'assert' module, which is not present in the legitimate source code or browser build. This hidden dependency is loaded at runtime, enabling attacker-controlled code execution on any system that installs and imports this package. This is a dependency-chain dropper attack delivering malicious code via npm.

Potential Impact

Any computer with web3-eth-util version 6.2.8 installed or running is considered fully compromised. The malicious code runs with full privileges in the Node.js environment, potentially exposing all secrets and keys stored on the system. Removal of the package does not guarantee full remediation as the attacker may have established persistent control or installed additional malware.

Mitigation Recommendations

Remove the web3-eth-util package version 6.2.8 immediately. Rotate all secrets and keys from a secure, uncompromised environment. Because the package delivers attacker-controlled code with full privileges, assume full system compromise and conduct a thorough incident response. Patch status is not applicable as this is a malicious package impersonation rather than a vulnerability with a vendor fix. Avoid installing packages with suspicious metadata or unexpected dependencies.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6325
Osv Schema Version
1.7.4
Aliases
["GHSA-g69q-p7f8-4jp3"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a577eea68715ace43b41279

Added to database: 07/15/2026, 12:36:58 UTC

Last enriched: 07/15/2026, 12:53:05 UTC

Last updated: 07/25/2026, 18:02:20 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses