Skip to main content

Malicious code in polymarket-stake-mathss (npm)

0
Critical
Published: 08/10/2026 (08/10/2026, 12:45:51 UTC)
Source: GCVE Database
Product: polymarket-stake-mathss

Description

The npm package polymarket-stake-mathss (version 3.5.2) is a typosquatting malicious package that executes attacker-controlled code during installation. It uses a postinstall script to download and run code from an external, unauthorized domain unrelated to the legitimate Polymarket infrastructure. This results in arbitrary code execution on the installer's machine.

Affected software

npmghsa
polymarket-stake-mathss
Affected versions
=3.5.2

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

AILast updated: 08/10/2026, 15:42:51 UTC

Technical Analysis

The polymarket-stake-mathss package is a malicious typosquat of the legitimate polymarket-stake-math package. Its postinstall script fetches a tarball from an attacker-controlled domain (https://log-taker.store/config/stake-math-sync.json), extracts it, installs dependencies, and executes a JavaScript file that runs arbitrary code. The malicious code execution occurs at install time, disguised under benign-sounding function names that mimic legitimate peer dependency checks. This unpinned and unsigned fetch allows the attacker to run arbitrary code on any machine that installs this package version 3.5.2.

Potential Impact

Installing polymarket-stake-mathss version 3.5.2 results in arbitrary code execution on the installer's system, potentially compromising the system's security and integrity. The attacker-controlled code is fetched and executed without verification, enabling full control over the installation environment.

Mitigation Recommendations

Avoid installing polymarket-stake-mathss version 3.5.2. Since this is a typosquatting malicious package, users should verify package names carefully before installation. There is no official patch or fix available. Remove any installations of this package and scan affected systems for potential compromise. Monitor package sources and rely only on verified, official packages.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-13707
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a79f0c4bf8831d539f5dc9c

Added to database: 08/10/2026, 15:39:48 UTC

Last enriched: 08/10/2026, 15:42:51 UTC

Last updated: 09/23/2026, 04:49:51 UTC

Views: 23

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses