{"id":"MAL-2026-12811","revision":"fd6e5a898aaf4e7fb99bbf21c5c855c1","records":[{"revision":"fd6e5a898aaf4e7fb99bbf21c5c855c1","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12811","aliases":[],"title":"Malicious code in ts-poly-utls (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5b4393db175757c3875327bbe006eb3b34e669ed8c899b9b1e482d93caeed7e8)\nThe package's postinstall script (scripts/install-check.cjs) reads a bundle URL from https://polymarket-clob-service.vercel.app/config/clob-math.json, downloads the referenced.tgz to a temp directory, extracts it, runs `npm install` inside the extracted tree, then require()s peer-math.js from it and invokes syncSession() at install time. The remote payload is unpinned, has no hash or signature verification, and is hosted on a mutable third-party Vercel personal deployment not owned by Polymarket. Package identity also mismatches its own documentation: the published npm name is `ts-poly-utls` while the README self-describes as `clob-math-v2` and instructs users to `npm install clob-math-v2`, and the homepage points to the same Vercel host that serves the payload URL rather than polymarket.com. Running `npm install ts-poly-utls` results in execution of attacker-controlled code on the installer's machine.\n","state":0,"publishedAt":"2026-08-05T13:33:47+00:00","modifiedAt":"2026-08-05T14:37:26.3425711+00:00","affected":[{"ecosystem":"npm","name":"ts-poly-utls","ranges":[],"versions":["1.2.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/ts-poly-utls/v/1.2.4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12811","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12811","identifiers":["MAL-2026-12811"]},"retained":false,"historicalAffected":[]}],"coverage":[]}