We value your privacy

We use cookies to understand how the site is used and to measure our marketing. You can accept all, reject all, or choose which to allow. See our Cookie Policy.

News

The Optimizely attack: your website is only as safe as the scripts you borrow

Security Breach, Data Breach

Imagine a building with strong locks and vetted staff, where the cleaning contractor also holds a key. One night, someone copies that key. That is, in essence, what happened to 178 organisations on Monday 16 November 2026.

None of them had their own systems broken into. Instead, an attacker got into Optimizely Web Experimentation, a widely used A/B-testing service, and used it to slip malicious code into the pages of brands such as Zoom, the BBC, CNN, HSBC, IKEA and Equifax. Anyone browsing those sites that day may have run the attacker's code without any sign that something was wrong.

What we know so far

The campaign was spotted by Scott Helme and the team at Report URI. Out of 1,611 Optimizely snippets they examined, 188 contained the attacker's code, spread across 178 organisations. Banks and financial firms formed the largest group, and even Optimizely's own website was affected. The true number of victims may well be higher.

The method was surprisingly simple. Optimizely lets each customer add custom JavaScript that runs on every page of their site. The attacker abused that feature to plant their code. Because the file was still delivered from Optimizely's genuine servers, nothing looked unusual to browsers or to most security tools.

Early on 17 November, Optimizely confirmed that a vulnerability in its Experimentation product had been exploited. It says the weakness is now fixed and the affected projects have been cleaned. What it has not yet explained is what the flaw was, or how one attacker could reach so many separate customer accounts. Those answers matter, and we will update this post when they arrive.

A payload built to cash in

The code worked like a multi-tool. Its first job targeted cryptocurrency users: whenever a wallet address appeared on a page or was copied, it quietly swapped in one controlled by the attacker. By early afternoon it had also been upgraded to lift payment card details from checkout forms that sites ran themselves, and to grab cookies and screenshots. Visitors on older iPhones and iPads were steered towards known iOS exploit kits, although no confirmed case of a phone being taken over has been reported.

The code stayed live for most of the day, until a large clean-up in the evening. Blockchain tracing suggests the attacker collected roughly $7,000 in crypto. Card fraud and hijacked sessions take longer to surface, so the full cost is still unknown.

Three lessons for every organisation

1. Your supply chain runs through your visitors' browsers

Most security programmes concentrate on servers, networks and staff devices. Yet a typical modern website loads dozens of third-party scripts, from analytics and live chat to testing and tag managers, and each one has full access to the page. If any of those vendors is compromised, it becomes your incident, with your brand attached. The polyfill.io case in 2024 made the same point; Optimizely shows it at a larger scale.

2. A "trusted domain" is not a security control

Plenty of the affected sites had a Content Security Policy, but very few were protected by it. When Report URI tested the policies on affected sites, only around 15% blocked the malicious code outright, and 68 sites had no policy at all. Allowing the vendor's domain offered no defence, because the harmful code came from that very domain. Loose settings such as 'unsafe-eval', which some vendors ask customers to switch on, gave the attacker even more room.

3. Payment pages deserve their own locked room

The skimmer could only read card numbers typed into a site's own forms. Sites using hosted payment fields from their payment provider kept that data out of reach. That is a strong argument for keeping marketing and experimentation tools well away from checkout pages. It is also already an expectation under PCI DSS v4.0, which requires organisations to keep an inventory of scripts on payment pages and to detect unauthorised changes.

Questions to put to your team this week

  • Which third-party scripts load on our website, who approved them, and who can change what they deliver?
  • Can anyone outside our organisation push code to our pages through a vendor tool, and how is that access protected?
  • Are our payment pages free of non-essential scripts, and do we use hosted payment fields?
  • Is our Content Security Policy genuinely restrictive, and does anyone review its violation reports?
  • Would we notice within hours, rather than weeks, if a script on our site suddenly started behaving differently?

If you are an Optimizely customer, review the custom JavaScript in every project and its change history for 16 November. Check who has permission to edit, rotate credentials, and assume card details entered into your own forms that day may be exposed.

If you visited one of the affected sites, update your iPhone or iPad, check any crypto address on your hardware wallet's screen before you send funds, and keep an eye on your card statements.

Blackfoot's take

This attack never had to beat the victims' defences head-on. It simply came in through a door they had opened for a supplier. The answer is not to abandon third-party tools. It is to treat them like any other privileged access: limiting scope, monitoring and, where possible, keeping them away from the most sensitive parts of your site.

If you would like a second pair of eyes on the scripts running on your website, or on your PCI DSS readiness, the Blackfoot team can help.

← All news