Skip to main content
MalwarePublished Updated

eth-base (npm) · Malicious Code

Affects eth-baseSource GCVE Database

0

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

Data as of 26 Oct 2026, 15:56 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10413

What to do

Remove eth-base 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
npmeth-baseAffected
  • =1.0.0
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 'eth-base' version 1.0.0 contains malicious code injected into its published build. The package impersonates a legitimate web3.js helper but includes about 60KB of obfuscated JavaScript that executes arbitrary attacker-supplied code with full Node.js require access upon loading. This occurs because the malicious payload loads axios, fetches remote code via a reconstructed URL, and executes it dynamically. The source code repository is empty, and the clean source code does not contain the payload, indicating the compromise is only in the published package. Consumers installing or requiring this package risk arbitrary code execution on their host.

References

Community reviews

Loading reviews…