Optimizely security incident shown as a browser with an injected malicious script and 178 sites hit

The Optimizely security incident hit 178 sites, according to the Daily Beast.

Most website owners lock the front door and forget the scripts they invite in. The Optimizely security incident is a loud reminder of why that matters.

For several hours, code served from a trusted address carried a hidden payload. Banks, media houses and software firms were on the list.

Let’s walk through what happened in the Optimizely security incident, what’s confirmed, and how any site owner can lower the risk.

Quick takeaways

  • On 16 November 2026, attackers slipped malicious JavaScript into Optimizely Web projects.
  • Visitors to sites such as the BBC and CNN received code that could swap crypto wallet addresses and skim payment cards.
  • Optimizely says it has fixed the flaw.
  • Several questions remain open.

Last updated 19 November 2026. Details may change as Optimizely and researchers publish more.

What happened in the Optimizely security incident?

Attackers added malicious code to Optimizely Web Experimentation, a tool companies use to run A/B tests and personalise pages. The Daily Beast, via Yahoo News, reports that 178 sites were hit, including the BBC and CNN.

Malicious code was first detected on the BBC site on Monday 16 November, and Scott Helme of Report URI tracked the spread. A later count in StepSecurity’s analysis puts it at 186 sites and 188 script files, a campaign that analysts nicknamed OPTIMJACK.

The timeline moved fast:

When (UTC) What happened
16 Nov, 04:21 First injection seen on a BBC snippet
16 Nov, 13:43 Card skimmer added, per Helme
16 Nov, 20:40 to 21:10 Mass cleanup begins
16 Nov, 23:11 Helme says all files are clean
17 Nov, 19:55 Optimizely confirms the incident
178sites hit, per the Daily Beast
~30 KBsize of the injected script
$7,040crypto losses reported by Scott Helme

How did the malicious code reach so many websites?

The attacker wrote a loader into the “Project JavaScript” field of customer projects. StepSecurity says the CDN itself was not compromised. It simply served the tampered file with Optimizely’s normal certificate.

That’s the nasty part. Browsers saw a trusted domain and ran everything. Sites that host the snippet themselves were also hit, because the content comes from the same project.

Optimizely says the flaw was in its account signup flow and that it has been fixed. In its status update it said it removed the injected code and added protections. It hasn’t explained how a signup bug gave access to unrelated projects.

What did the injected script and card skimmer actually do?

StepSecurity describes a roughly 30 KB script, a form of malware, with three jobs:

  • Crypto address swapper: Replaces copied wallet addresses with the attacker’s, mainly near payment-related words.
  • Screenshot and cookie capture: After a swap, it sends a screenshot and cookies to the attacker. HttpOnly cookies stay out of reach.
  • Card skimmer: Watches forms and network calls for card numbers. It doesn’t collect names or billing addresses and can’t read cross-origin payment iframes.

On iPhones and iPads, the code also loaded a second stage linked to exploit kits for specific iOS versions. The analysts say they saw exploit pages delivered, not confirmed device takeovers.

How big was the damage?

The Optimizely security incident looks smaller than the headline numbers suggest, at least so far. Helme reported about $7,040 in crypto losses. Galaxy Digital’s estimate is closer to $2,300. StepSecurity notes neither figure can be fully verified.

The number of cards skimmed is unknown. The Daily Beast says researchers can’t tell how many payment methods were taken.

Companies responded quickly. Zoom disabled Optimizely in production and found no customer data impact. Equifax stopped using it and saw no sign of compromise. Separately, the US Director of National Intelligence told CNBC the incident and other recent outages were not a coordinated nation-state effort.

What is still unknown?

Quite a lot about the Optimizely security incident is still unclear:

  • How the signup flaw led to write access across projects
  • Who is behind the campaign (no confirmed attribution)
  • Whether any iPhone was actually compromised
  • Whether every site was fully cleaned

Treat early numbers as a snapshot. They can change.

How can you protect your site from a third-party JavaScript attack?

Assume any script you load can go bad someday, then limit the damage of any third-party JavaScript attack. A few controls from the StepSecurity write-up and standard web security practice help after the Optimizely security incident:

  1. Use a Content Security Policy (CSP) with host allowlists. Restricting script-src and connect-src blocks the payload download and the data exfiltration. A strict-dynamic policy with nonces would not have stopped this, since it trusts scripts that trusted scripts load.
  2. Keep third-party tags off checkout pages. Use hosted payment fields from your payment provider instead.
  3. Inspect the Project JavaScript field, not just your own code. One variant hid its URL in base64, and another embedded the full payload.
  4. Audit accounts and API tokens on marketing tools, with multi-factor authentication switched on.
  5. Be realistic about Subresource Integrity. It’s hard to use when a snippet changes with every experiment.

A consent banner won’t help here. It controls when scripts run, not what they do.

What mistakes do site owners make with third-party scripts?

Three come up again and again after incidents like the Optimizely security incident:

  • Trusting a vendor’s domain forever. A trusted address only proves where a file came from, not what’s inside it today.
  • Searching only for the known bad URL. Attackers hide it or paste in the full payload.
  • Keeping no inventory. If you can’t list the scripts your pages load, you can’t spot the odd one out.

A short monthly review of every external script on your checkout and login pages catches a surprising amount.

What should visitors and shoppers do?

If you entered a card on a site hit by the Optimizely security incident between 16 and 17 November, watch your statements and consider asking your bank for a replacement. Most Indian banks let you block a card from their mobile app.

For crypto, verify the receiving address on your hardware wallet screen, not in the browser. And keep iPhones updated.

Scam emails often follow big incidents. Read what is phishing so you can spot them.

FAQ

Was Optimizely’s CDN hacked?

StepSecurity says no. The attacker edited customer project content, and the CDN delivered it. Optimizely points to a flaw in its signup flow.

Which companies were affected?

In the Optimizely security incident, reports list the BBC, CNN, Zoom, Salesforce, GitLab and HSBC, among others. Equifax says it stopped using Optimizely and found no compromise.

What is a supply chain attack?

A supply chain attack means attacking a supplier to reach the supplier’s customers. It is one of many types of cyber attacks worth knowing. Here, the supplier was a script provider used by many websites.

Can a Content Security Policy stop this kind of attack?

A well-written host allowlist can block the download and data upload. A policy that trusts any script loaded by a trusted script may not.

Is the Optimizely security incident over?

Cleanup was underway by the evening of 16 November, and Optimizely confirmed the incident on 17 November. Open questions remain.

Sources