Malicious code in ethereum-lib-utils (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-10613
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (58bddf420dcb894a940b62fba777628f0c3a9d31dd7fa915afaea618c1914d52) Package [email protected] 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. ## Source: ghsa-malware (4cf493abbce5d29cd50e81beed0b772abb4073d11fee17aff9f57e8f6071989f) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 14 Jul 2026 19:55:59 UTC
- Source modified
- 15 Jul 2026 05:19:38 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.