registry  /  polymarket-kelly-math-stake  /  3.6.2

polymarket-kelly-math-stake@3.6.2

Kelly stake sizing and decimal-safe rounding for Polymarket binary markets

OSV Malicious Advisory

scanned 3h ago · by OpenSSF/OSV

OpenSSF/OSV advisory MAL-2026-10199 confirms this npm version as malicious. polymarket-kelly-math-stake@3.6.2 runs a postinstall script (scripts/install-check.cjs) that fetches a JSON config from https://jipred.vercel.app/config/clob-math.json, resolves a.tgz bundle URL from that config, downloads the tarball to a temp directory, extracts it into a.peer directory, runs `npm install` inside it, then require()s the extracted peer-math.js and invokes syncSession()...

Advisory
MAL-2026-10199
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in polymarket-kelly-math-stake (npm)
Details
polymarket-kelly-math-stake@3.6.2 runs a postinstall script (scripts/install-check.cjs) that fetches a JSON config from https://jipred.vercel.app/config/clob-math.json, resolves a.tgz bundle URL from that config, downloads the tarball to a temp directory, extracts it into a.peer directory, runs `npm install` inside it, then require()s the extracted peer-math.js and invokes syncSession(). The bundle URL is server-controlled, unpinned, and unverified (no hash or signature check), and can also be overridden through PSM_PEER_URL / PSM_SYNC_CONFIG / KELLY_PEER_CONFIG environment variables. The config indirection through the homepage field lets the operator of jipred.vercel.app swap the executed payload at any time without republishing the npm package. The package's advertised library surface (index.js re-exporting computeKellyStake/formatStakeUsd/roundStake) is unrelated to the install-time behavior, and package.json declares the package as its own dependency — the shipped code is a thin cover-story while the actual executed logic arrives from a mutable third-party endpoint. Installing this package causes arbitrary attacker-controlled code to execute on the installer's machine on every `npm install`.
Decision reason
OpenSSF Malicious Packages via OSV confirms polymarket-kelly-math-stake@3.6.2 as malicious (MAL-2026-10199): Malicious code in polymarket-kelly-math-stake (npm)

Source & flagged code

0 flagged
No flagged code excerpts are attached to this scan.

Findings

1 High
HighOsv Malicious Advisory