Hackers Steal $2.7 Million from Polymarket Traders via Hijacked Third‑Party Page‑Speed Script
What Happened — On October 29, 2026, malicious JavaScript was served to visitors of Polymarket, a decentralized prediction‑market platform. The code replaced a legitimate page‑speed optimization script that Polymarket loads from an external vendor (identified in the report as DebugBear). Because the compromised script executed in the browsers of signed‑in traders, it was able to read authentication tokens and invoke Polymarket’s smart‑contract functions on the users’ behalf. The attackers used those privileges to sell the traders’ open positions and transfer the proceeds to addresses they controlled.
Polymarket’s security team discovered the abnormal fund movements when blockchain analytics flagged a sudden outflow of roughly $2.64 million to a handful of new wallets. Internal logs showed that the malicious script had been active for several hours on the day of the attack, affecting 726 wallets. In response, Polymarket announced that it will refund the full $2.7 million to the affected users and is working with law‑enforcement and blockchain‑forensics firms to trace the stolen assets.
The compromised script was a performance‑monitoring tool that Polymarket loads from a third‑party CDN. The attacker’s supply‑chain foothold allowed them to inject the malicious payload without altering Polymarket’s own codebase, bypassing traditional code‑review processes. No vulnerability in Polymarket’s smart contracts was exploited; the breach hinged entirely on the trust placed in the external script provider.
Polymarket’s public statement emphasized that user funds were stored in non‑custodial wallets, meaning the platform could not directly reverse the transactions on‑chain. Instead, the company is crediting the affected wallets with equivalent value on its internal ledger, pending confirmation of the refunds.
Security researchers note that this incident mirrors a growing trend of third‑party script hijacking—often called “supply‑chain JavaScript attacks”—where attackers compromise a vendor’s CDN or build pipeline to serve malicious code to many downstream sites. Because the malicious code runs in the victim’s browser, it can inherit the victim’s authenticated session and perform privileged actions that would otherwise require direct credential compromise.
Polymarket has taken immediate mitigation steps: the compromised script has been removed, Subresource Integrity (SRI) hashes are being added to all third‑party resources, and a stricter Content‑Security‑Policy (CSP) is being enforced to limit script execution to trusted origins. The platform is also conducting a comprehensive audit of all external dependencies and will require future vendors to provide attestations of secure build pipelines.
The incident underscores the importance of continuous monitoring and assurance of third‑party code. Even well‑intentioned vendors can become attack vectors if their own security posture is weak. Organizations that rely on external scripts must treat those components as part of their attack surface, applying the same rigor—inventory, verification, and real‑time monitoring—that they apply to internal assets.
Why It Matters for Trust & Control Assurance — The breach demonstrates a failure in third‑party risk oversight; robust vendor‑risk controls and continuous evidence collection would have surfaced the script tampering earlier.
Who Is Affected — Cryptocurrency exchanges, decentralized finance (DeFi) platforms, any web‑based service that loads third‑party JavaScript (e.g., SaaS, fintech, e‑commerce).
Recommended Actions
- Inventory every external script, CDN, and widget used by your web applications.
- Enforce Subresource Integrity (SRI) and a restrictive Content‑Security‑Policy (CSP) to limit where scripts can be loaded from.
- Deploy a real‑time third‑party script monitoring solution that hashes and validates each script at load time.
- Incorporate third‑party risk evidence (vendor attestations, security audit reports) into your audit‑readiness artifacts.
- Conduct a tabletop incident‑response exercise focused on supply‑chain compromise scenarios.
Source: The Hacker News
Technical Notes
- Attack vector: Compromised third‑party page‑speed JavaScript (supply‑chain script injection).
- Data exposed: Authenticated session tokens, wallet addresses, open position data.
- Impact: Approx. $2.7 M stolen, 726 wallets affected. No on‑chain vulnerability in Polymarket’s smart contracts identified.
- Detection: Blockchain analytics flagged anomalous transfers; internal logs correlated the timing with the malicious script.