polymarket-clob-math
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-3q5w-m6wr-5jp2
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in polymarket-clob-math (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (d67023e54ba355e9c82fd2a05d2d2448657a3ea9415ff18d3c4669a9fc0afb42)
[email protected] ships a postinstall lifecycle script that performs an install-time remote-code-execution drop. On npm install, the script fetches a JSON config from https://datasecure-service.vercel.app/config/clob-math.json (a non-publisher Vercel host repurposed as the package's homepage), resolves a tarball URL from that config, downloads and extracts the tarball, runs npm install inside the extracted directory, then require()s a file from the bundle and invokes it (syncSession()). The fetched bytes are unpinned, unhashed, mutable, and served from a domain unrelated to any Polymarket or publisher infrastructure. Internal naming (PSM_PEER_URL, runPeerSync, peer-math.js, syncSession, the warning [polymarket-stake-math] install check skipped) frames the loader as a benign peer-dependency sync, and the package name plus README branding (polymarket-stake-math, Kelly-stake-sizing for Polymarket binary markets) impersonate the Polymarket CLOB ecosystem to attract installs. Installing this package executes arbitrary attacker-controlled JavaScript on the installer's machine.
Source: ghsa-malware (b97af817a9d363e1a9135df78b3907253177ab4a63b8f4d8e58c46d561478326)
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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0