web3-eth-util
This report shows the evidence for web3-eth-util@6.2.8. 1 of 2 known versions is blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-6325 confirms this npm version as malicious.
Advisory
MAL-2026-6325
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in web3-eth-util (npm)
Details
Package name and metadata impersonate the legitimate @ethereumjs/util / ethereumjs-util packages: README is copied verbatim from the upstream ethereumjs project (and even instructs users to `npm install eth-util`), the contributor list and repository URL point at ethereumjs/ethereumjs-monorepo, but the package is published under a different name and ownership. The published dist/index.js (line ~57) contains `require("assertcore")` and package.json declares `"assertcore": "^3.1.7"` as a runtime dependency. The human-authored src/index.ts has no such import, and the browser build at dist.browser/index.js also omits it — the extra require is injected only into the Node-targeted build that ships in the npm tarball, so reviewers reading the GitHub source see clean code while `npm install` + `require('web3-eth-util')` silently loads the third-party 'assertcore' package in the consumer's Node process with full privileges. 'assertcore' is not part of the legitimate @ethereumjs/util sources and resembles a typosquat of the standard 'assert' module. The combination — brand impersonation of a widely used Ethereum utility package, source/dist divergence hiding the injection from GitHub readers, and a require-time pull of an unrelated third-party package — is a dependency-chain dropper pattern that delivers attacker-controlled code to anyone who installs and imports this package.
References
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to web3-eth-util@6.2.8.
The versions list below shows the verdict for each recorded version.
- Avoid installing web3-eth-util@6.2.8. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.