ethers-signer (npm) · Malicious Code
Affects ethers-signerSource GCVE Database
Malicious package : remove ethers-signer and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 23:01 UTC
Malicious package
Published to npm · OSV MAL-2026-13343
What to do
Remove ethers-signer 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-signer | 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-signer version 3.2.1 is a typosquatting malicious package impersonating @ethersproject/abstract-signer. When imported, it collects all environment variables and system information such as hostname, username, home directory, platform, and current working directory. This data is base64-encoded and exfiltrated via an HTTPS GET request to a Telegram bot controlled by the attacker. The package attempts to hide its malicious behavior by re-exporting the legitimate @ethersproject/abstract-signer module. A flag file prevents repeated data exfiltration on the same host.