ethers-5 (npm) · Malicious Code
Affects ethers-5Source GCVE Database
Malicious package : remove ethers-5 and rotate any secrets on hosts that installed it.
Data as of 30 Oct 2026, 00:02 UTC
Malicious package
Published to npm · OSV MAL-2025-49312
What to do
Remove ethers-5 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
| Product | Affected | Fixed in |
|---|---|---|
| npmethers-5 | Affected
| 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 ethers-5 versions 5.0.8 and 5.0.9 have been identified as containing malicious code. The malicious behavior involves the execution of one or more commands associated with harmful activity. This package is flagged by both Amazon Inspector and the OpenSSF Package Analysis project as malicious.