MAL-2026-10613
Malicious code in ethereum-lib-utils (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (58bddf420dcb894a940b62fba777628f0c3a9d31dd7fa915afaea618c1914d52) Package ethereum-lib-utils@1.3.7 impersonates the widely-used ethereumjs-util library: the package name, README badge, repository, homepage, and author metadata all point at the legitimate ethereumjs project, and the code is a lightly-modified copy of ethereumjs-util. The Node build at dist/index.js contains a bare `require("assertion-utils-js")` with no assignment — the return value is discarded, so the sole purpose of the statement is to execute that dependency's code when a consumer imports the library. This require is absent from the TypeScript source (src/index.ts) and from the browser build (dist.browser/index.js); it appears only in the Node dist, indicating deliberate injection into the shipped Node artifact. Consumers who require('ethereum-lib-utils') transitively load and execute assertion-utils-js at import time; the actual payload is carried by that unusually-named dependency rather than by this package's own code.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for ethereum-lib-utils (npm). Pin to a known-safe version or switch to an alternative.