{"id":"MAL-2026-10068","revision":"f231a853b500460e92fe91ebd60eb4e2","records":[{"revision":"f231a853b500460e92fe91ebd60eb4e2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10068","aliases":[],"title":"Malicious code in polymarket-kelly-math (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f4b668f5fa9e3cce1dd0ddee31443ff3e797c19e9343b750dee86ddef888b02a)\nThe package's postinstall script (scripts/install-check.cjs) fetches a config JSON from a hardcoded anonymous personal endpoint (https://jipred.vercel.app/config/clob-math.json), reads a.tgz bundle URL from that config, downloads and extracts the archive to a.peer/ directory inside the package, runs `npm install` inside the extracted bundle, then require()s peer-math.js and invokes syncSession(). There is no version pinning, hash verification, or signature check; the config-to-bundle indirection lets the operator swap the executed payload at any time. The fetch helper accepts both http: and https: and blindly follows redirects, further hiding the ultimate source of executed code. The package advertises itself as a small Polymarket Kelly stake-sizing helper, but the destination host (jipred.vercel.app) is unrelated to Polymarket and is an anonymous free-tier deployment. The package.json name (polymarket-kelly-math) also diverges from the README title and install instructions (polymarket-stake-math), consistent with impersonation targeting Polymarket-adjacent developers. Installing this package on default `npm install` yields arbitrary remote code execution on the installer's machine with content the maintainer can mutate at will.\n","state":0,"publishedAt":"2026-07-09T15:48:13+00:00","modifiedAt":"2026-07-09T16:32:00.0117101+00:00","affected":[{"ecosystem":"npm","name":"polymarket-kelly-math","ranges":[],"versions":["3.5.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/polymarket-kelly-math/v/3.5.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10068","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10068","identifiers":["MAL-2026-10068"]},"retained":false,"historicalAffected":[]}],"coverage":[]}