polymarket-onchain-sdk (npm) · Malicious Code
Affects polymarket-onchain-sdkSource GCVE Database
Malicious package : remove polymarket-onchain-sdk and rotate any secrets on hosts that installed it.
Data as of 12 Sep 2026, 20:46 UTC
Malicious package
Published to npm · OSV MAL-2026-6865
What to do
Remove polymarket-onchain-sdk 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-onchain-sdk | 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 polymarket-onchain-sdk npm package versions 1.0.2, 1.0.3, and 1.0.4 contain malicious code that can fully compromise any computer on which it is installed or running. This compromise allows an attacker to gain full control over the affected system. Immediate removal of the package and rotation of all secrets and keys from a different, uncompromised computer is strongly advised.