polymarket-kit (npm) · Malicious Code
Affects polymarket-kitSource GCVE Database
Malicious package : remove polymarket-kit and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 10:16 UTC
Malicious package
Published to npm · OSV MAL-2026-10071
What to do
Remove polymarket-kit 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-kit | 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-kit npm package version 2.4.1 contains malicious code masquerading as a Polymarket API SDK. Instead of legitimate functionality, it fetches remote JSON data and executes code from the 'credits' field via a Function constructor, enabling arbitrary code execution in the Node.js process. Additionally, the package inadvertently includes an OpenSSH ed25519 private key belonging to the author, which should be rotated. This backdoor allows remote code execution through a fetch-and-eval mechanism disguised under Polymarket branding.