polymarket-trading-cli (npm) · Malicious Code
Affects polymarket-trading-cliSource GCVE Database
Malicious package : remove polymarket-trading-cli and rotate any secrets on hosts that installed it.
Data as of 21 Aug 2026, 14:31 UTC
Malicious package
Published to npm · OSV MAL-2026-4217
What to do
Remove polymarket-trading-cli 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 |
|---|---|---|
| npmpolymarket-trading-cli | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
A coordinated supply-chain attack involving nine npm packages published by the maintainer polymarketdev impersonates legitimate Polymarket trading tools. These malicious packages exfiltrate Ethereum private keys by prompting users or silently reading environment variables, then sending the keys to a Cloudflare Worker command-and-control server. The malware uses a postinstall hook to evade automated detection and maintains local persistence with device fingerprinting. The packages include working trading commands as cover and falsely claim private keys remain encrypted. Any system with these packages installed is considered fully compromised.