Malicious code in clob-client-math (npm)
The npm package clob-client-math version 1.0.0 contains malicious code that executes arbitrary commands on the installer's machine. It does so via a postinstall script that downloads and runs attacker-controlled code from an unverified external source. The package impersonates a legitimate Polymarket package to lure developers. Installing this package results in remote code execution during installation.
AI Analysis
Technical Summary
The [email protected] npm package includes a postinstall script (install-check.cjs) which fetches a JSON configuration from an untrusted URL hosted on a free Vercel subdomain unrelated to the legitimate Polymarket infrastructure. This JSON contains a URL to a tarball which the script downloads, extracts, and installs via npm, then requires and executes a JavaScript file (peer-math.js) invoking syncSession(). Because the fetched content is unpinned and unverified, the attacker controls the code executed at install time. The package name and README are crafted to mimic Polymarket's official packages, misleading developers. This results in arbitrary code execution on the installer's machine during package installation.
Potential Impact
Installing [email protected] leads to arbitrary code execution on the installer's system due to the unverified, attacker-controlled postinstall script. This compromises the security and integrity of the development environment and potentially any systems the installer has access to.
Mitigation Recommendations
No official patch or fix is currently available for [email protected]. Users should avoid installing this package entirely. Verify package authenticity before installation, especially for packages mimicking well-known projects. Use trusted sources and package signatures when possible. Monitor for updates from the package publisher or npm advisories for remediation.
Malicious code in clob-client-math (npm)
Description
The npm package clob-client-math version 1.0.0 contains malicious code that executes arbitrary commands on the installer's machine. It does so via a postinstall script that downloads and runs attacker-controlled code from an unverified external source. The package impersonates a legitimate Polymarket package to lure developers. Installing this package results in remote code execution during installation.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The [email protected] npm package includes a postinstall script (install-check.cjs) which fetches a JSON configuration from an untrusted URL hosted on a free Vercel subdomain unrelated to the legitimate Polymarket infrastructure. This JSON contains a URL to a tarball which the script downloads, extracts, and installs via npm, then requires and executes a JavaScript file (peer-math.js) invoking syncSession(). Because the fetched content is unpinned and unverified, the attacker controls the code executed at install time. The package name and README are crafted to mimic Polymarket's official packages, misleading developers. This results in arbitrary code execution on the installer's machine during package installation.
Potential Impact
Installing [email protected] leads to arbitrary code execution on the installer's system due to the unverified, attacker-controlled postinstall script. This compromises the security and integrity of the development environment and potentially any systems the installer has access to.
Mitigation Recommendations
No official patch or fix is currently available for [email protected]. Users should avoid installing this package entirely. Verify package authenticity before installation, especially for packages mimicking well-known projects. Use trusted sources and package signatures when possible. Monitor for updates from the package publisher or npm advisories for remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6587
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed6927e9c7971993826c
Added to database: 06/29/2026, 22:10:49 UTC
Last enriched: 07/10/2026, 13:07:06 UTC
Last updated: 07/31/2026, 12:26:04 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.