Malicious code in polymarket-kelly-math-stake (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-10199
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f2cf5ba9cd75b1a773e3a04e6eb45778894e04fd1d55b2e8ad03ae97deb41d16) [email protected] 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`. ## Source: ghsa-malware (a15a485d430e971b7b4d8638b535e9e51ca65908d77a93ddfef4b04186dfaaec) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 12 Jul 2026 15:12:02 UTC
- Source modified
- 13 Jul 2026 15:32:00 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.