Cyber Security - 6 min read - 18 November 2026

An A/B testing tool served malware on 178 organisations' websites, and allowlisting it made no difference

Optimizely's own CDN delivered a card skimmer, a crypto address swapper and iPhone exploits to visitors of the BBC, CNN, Zoom, HSBC and others. Only 24 sites had a browser policy that stopped it.

If you opened the BBC, CNN or Zoom's website on Monday, your browser fetched a small file from Optimizely along with everything else. It does that on most visits. Optimizely Web Experimentation is the tool marketing teams use to run A/B tests, the thing that decides whether you see the green button or the blue one. On Monday, for about nineteen hours, that file also carried somebody else's code.

What happened

The detail comes from Scott Helme at Report URI, whose write-up is worth reading in full. The first injection he can date was at 04:21 UTC on 16 November. Someone had written JavaScript into the "Project JavaScript" field of Optimizely customer projects, a legitimate feature that lets a customer run their own code on every page. Optimizely's content delivery network then did its job and served it. Helme is specific on this: "Optimizely's CDN served exactly what it was given; this was not a CDN cache-poisoning attack."

Report URI checked 1,611 Optimizely snippets and found 188 infected, belonging to 178 organisations. Thirty-two of those are in banking and finance. The names include Salesforce, GitLab, IKEA, HSBC, Equifax, Air France-KLM and the hardware wallet maker Ledger, plus Optimizely's own website and login page. The true count is probably higher, since Report URI could only test the snippets it found in time. All of the infected files were clean again by 23:11 UTC.

Optimizely's public statement, quoted by The Record, is short: it "identified and contained a security incident affecting some Optimizely Web Experimentation customers", and "the vulnerable path is blocked, the injected code was removed, and customers have been contacted directly." A technical advisory confirms a flaw in the platform was used. How one attacker got write access to nearly two hundred unrelated customer projects has not been explained. Helme's view: "That's for Optimizely to explain."

What the code did

The injected snippet pulled a second file, track.js, from a domain registered that same morning. The attacker rebuilt it 26 times during the day, adding features as they went:

  • It swapped cryptocurrency wallet addresses for the attacker's own, in page text, in forms and on the clipboard. It checked that an address was valid before replacing it, so nothing looked broken.
  • From 13:43 UTC it copied card numbers, expiry dates and CVVs out of payment forms. Card fields hosted in an iframe by a payment provider such as Stripe or Adyen were out of its reach.
  • It sent off cookies that scripts can read, along with a screenshot of the page.
  • On iPhones and iPads it loaded exploit kits matched to the iOS version, including two known as Coruna and DarkSword. Report URI's advice to anyone who visited an affected site that day is to update to iOS 18.7.3 or 26.3 or later.

The money that can be counted is small: roughly $7,150 in stolen crypto traced on-chain. Nobody outside the attacker knows how many cards were taken, how many sessions were copied or how many phones were hit. As Black Duck's Collin Hogue-Spears told The Record, each affected company now has to work out which of its pages loaded the snippet, for how long, and what payments went through them in that window.

The allowlist didn't help

This is the part I'd put in front of a web team. Report URI tested the content security policies of the affected sites. Sixty-eight had none. Fifty had a policy that let both the payload and the data theft through. Seventeen blocked the stolen data from leaving but still ran the code, so the address swapping worked anyway. Only 24 stopped the payload.

The reason is simple. A typical policy says "scripts may load from cdn.optimizely.com", and the malicious code came from cdn.optimizely.com. In Helme's words, allowing that host "was never going to help." Two common settings made it worse. One is 'strict-dynamic', which extends trust to anything a trusted script adds to the page. The other is 'unsafe-eval', which Optimizely's own documentation asks customers to allow, and which let a fallback copy of the payload run inline when the attacker's domain was blocked. HSBC's policy blocked track.js and the data theft, and the inline copy still ran.

What separated the 24 was a tight script-src, so the snippet could not pull in code from a domain nobody had approved, and a connect-src that limited where the page could send data.

What to do this week

  • If you use Optimizely Web, open every project and read the Project JavaScript and experiment code. Report URI lists the indicators. Then review who has access and rotate credentials and API tokens.
  • Work out your exposure window. Which pages load the snippet, and did any of them take card details or show a signed-in session on 16 November? If so, treat that data as exposed and take advice on notification.
  • Take tag managers and experimentation tools off checkout, login and account pages unless there's a strong reason for them to be there. Most A/B tests don't need to run where the card number is typed.
  • Use your payment provider's hosted fields. It was the one control that kept card data out of reach here regardless of what else was on the page.
  • Turn on a content security policy in report-only mode if you have nothing. It blocks nothing and breaks nothing, and it tells you when a new script or a new destination appears on your pages. On Monday that would have been a nineteen-hour head start.
  • Ask who in your organisation can add a script to the website without a code review. With a tag manager or an experimentation tool, the answer is usually "marketing, and now also whoever breaks into the vendor".

It's the second time in a few weeks we've written about this pattern. In the Polymarket case the way in was a page-speed monitoring script. The vendors change and the mechanism doesn't: a script you load from someone else runs with the same rights as your own code, and it's only as safe as their worst day. If you'd like a second pair of eyes on what your pages load, email sales@halfteck.com.

Sources: Report URI (Scott Helme), 16 November 2026, updated 17 November; The Record, 17 November 2026; Security Affairs, November 2026; Black Kite, November 2026.

Explore more resources

Browse our full library of enterprise cloud, software, data and AI content.

View all resources