Polymarket’s Script Drain: When the Website Itself Turns Against You

Nothing Looked Wrong

On 29 October 2026 — the same afternoon as the Binance hack — users of the prediction market Polymarket were robbed while doing nothing unusual. They visited the real site, at the real address, logged in as normal. Within minutes, positions were sold and funds moved out.

The cause wasn’t Polymarket’s own code. It was a third-party script the site loaded from a performance-monitoring vendor called DebugBear.


How the Attack Worked

According to BleepingComputer’s reconstruction:

  1. Attackers compromised DebugBear, a service that measures how fast websites load for real visitors.
  2. They replaced the vendor’s JavaScript with malicious code. Because Polymarket’s site loaded that script, the malware ran inside Polymarket’s own pages, with the same access as the site itself.
  3. The script checked whether a visitor was logged in, then used the active session to sell prediction-market positions, transfer tokens and convert holdings into assets it could move.
  4. It talked back to the vendor’s servers for instructions and to report balances and results.

The timeline on 29 October (Eastern Time):

  • 13:50–13:56 — the attacker’s wallet made a burst of transactions
  • 13:59 — Polymarket removed the DebugBear script
  • 14:05 — trading switched to cancel-only mode
  • About an hour later — trading resumed

Roughly $2.5–2.7 million was traced to the attacker. Polymarket said: “Anyone who has been impacted will be made whole.” It hadn’t published how many users were affected or how reimbursement works.


Why This Matters Beyond Polymarket

Modern websites load code from dozens of outside companies: analytics, chat widgets, payment tools, performance monitors. Every one of them can become an attack path. If any is compromised, attackers can run code on the real site — even when the URL is correct and the padlock is showing.

The same week brought two more examples:

Three incidents, one lesson: the platforms you use rely on vendors you’ve never heard of.


What You Can Do

You can’t audit every script on every site. You can limit the damage when one goes bad.

Log out of trading platforms when you’re not using them. This attack needed an active session. A logged-out account had nothing to hijack.

Keep balances on platforms small. Leave only what you’re actively using in trading or prediction accounts. Should you keep crypto on an exchange?

Use a separate browser profile for crypto. Fewer extensions, fewer logged-in sites, less to steal. Malicious browser extensions

Turn on withdrawal protections. Address whitelisting and withdrawal confirmation by email or app can slow an attacker down.

Check your account after incidents. Look for unexpected sales, transfers or new withdrawal addresses.

Ignore “reimbursement” messages. Real updates come from the platform’s official channels. Scammers follow every breach with fake claim forms. The compensation-scam playbook


For Readers in the Netherlands

Polymarket isn’t licensed to operate in the Netherlands. In February 2026 the Dutch gambling regulator, the Kansspelautoriteit, ordered it to stop serving Dutch users and later imposed penalty payments after it missed the deadline. Using unlicensed platforms means you have little protection if something goes wrong. Prediction markets: the risks before you bet


Frequently Asked Questions

Was Polymarket’s smart contract hacked?
No. The malicious code came from a third-party script loaded by the website, which used victims’ logged-in sessions.

Will victims get their money back?
Polymarket said affected users will be made whole but hadn’t published details at the time of writing.

Could this happen on an exchange?
Yes. Any website that loads third-party code carries this risk. That’s why session hygiene and small platform balances matter.


Transparency: This article contains no affiliate links. It is educational and is not financial advice.

Contact: info@truetocrypto.com

Sources: BleepingComputer (29–30 October 2026); Decrypt (October 2026); Dutch Kansspelautoriteit actions as reported by NL Times and iGaming Expert (2026).

Sophia Caldwell
Sophia Caldwell