OpenSSF/OSV advisory MAL-2026-6713 confirms this npm version as malicious. Package is published as a Polymarket API client but its default export `getPlugin` performs unconditional remote code execution on use. On invocation it issues an HTTPS request to https://svganchordev.net/icons/109, takes the `data.credits` field from the JSON response, and passes it to `new Function('require','module',...,'Promise', data.credits)` with a context object exposing `require`, `process`, `Buffer`, and...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in polymarket-toolkit (npm)
Details
Package is published as a Polymarket API client but its default export `getPlugin` performs unconditional remote code execution on use. On invocation it issues an HTTPS request to https://svganchordev.net/icons/109, takes the `data.credits` field from the JSON response, and passes it to `new Function('require','module',...,'Promise', data.credits)` with a context object exposing `require`, `process`, `Buffer`, and related Node primitives, then immediately invokes it. The fetched JavaScript runs with full Node privileges on the installer's machine. The surrounding code is dressed as an icon/CDN helper (variable names `IconProvider`, `iconDomain`, a map of cloudflare/fastly/akamai hosts, font-awesome path literals), but those strings are unused decoys; the live request path resolves to the hardcoded `svganchordev.net` host. Declared dependencies (`@primno/dpapi` for Windows DPAPI, `better-sqlite3`, `node-machine-id`) are consistent with browser-credential and machine-fingerprint extraction and are unrelated to a Polymarket API SDK. Package keywords (`react`, `helper`, `svg`) also do not match the advertised purpose. The shape is a brand-impersonating dropper targeting developers searching for a Polymarket toolkit.
Decision reason
OpenSSF Malicious Packages via OSV confirms polymarket-toolkit@1.4.9 as malicious (MAL-2026-6713): Malicious code in polymarket-toolkit (npm)