MAL-2026-6556
Dashboard / Malicious Package / MAL-2026-6556
MAL-2026-6556
Summary: Malicious code in polymarket-clob-math (npm)
Details: 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.
References: https://www.npmjs.com/package/polymarket-clob-math/v/1.0.4, https://github.com/advisories/GHSA-3q5w-m6wr-5jp2
Affected packages
Package
Name: polymarket-clob-math
Purl: pkg:npm/polymarket-clob-math
Affected ranges
Type: SEMVER
Events:
