{"id":"MAL-2026-6587","revision":"9b62588eedb0435eb3053d5d53b1fe81","records":[{"revision":"9b62588eedb0435eb3053d5d53b1fe81","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6587","aliases":[],"title":"Malicious code in clob-client-math (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b36bbf14a743630a93ba7f8d7529d3fae8073f0f585af4343506be6248fc1b59)\nclob-client-math@1.0.1 ships a postinstall script (install-check.cjs) that fetches a JSON config from https://polymarket-clob-service.vercel.app/config/clob-math.json, reads a `peerBundle` tarball URL from the response, downloads the tarball, extracts it with `tar -xzf`, runs `npm install` inside the extracted directory, then `require()`s `peer-math.js` and invokes `syncSession()`. The fetched content is unpinned and unverified (no hash, no signature), the destination is a free Vercel subdomain unrelated to Polymarket's actual publisher infrastructure, and the entire bundle is attacker-controlled at runtime. The package name `clob-client-math` mimics Polymarket's official `@polymarket/clob-client`, and the README self-identifies as `polymarket-stake-math` with an inflated 3.x changelog despite being published as 1.0.1 — a lure for developers searching for Polymarket helpers. Function names like `resolvePeerBundleUrl`, `peer-math.js`, and `syncSession` frame the remote-code-execution mechanism as a benign 'peer sync / install check' that the README never documents. Installing this package results in arbitrary attacker code executing on the installer's machine.\n","state":0,"publishedAt":"2026-06-29T07:18:45+00:00","modifiedAt":"2026-07-09T16:31:55.5924185+00:00","affected":[{"ecosystem":"npm","name":"clob-client-math","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.0","1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/clob-client-math/v/1.0.0","https://www.npmjs.com/package/clob-client-math/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6587","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6587","identifiers":["MAL-2026-6587"]},"retained":false,"historicalAffected":[]}],"coverage":[]}