Yaamlabs

Supply chain

Optimizely Web served a skimmer to 178 brands

Attackers wrote malware into the Project JavaScript of Optimizely customer accounts, and the vendor CDN served it to visitors. What to check and how CSP helps.

On 16 November 2026, Scott Helme and Report URI disclosed that malicious JavaScript had been served to visitors of some of the largest sites on the web through Optimizely Web, the A/B testing and web experimentation platform (A/B testing means showing different versions of a page to different visitors to see which performs better). Report URI fetched and checked 1,611 Optimizely snippets and found 188 that carried attacker code, belonging to 178 organisations. The affected sites included Zoom, the BBC, CNN, Fox News, Salesforce, GitLab, IKEA, HSBC, Equifax, Ledger, Peacock and Air France-KLM, along with Optimizely's own marketing and login pages.

This matters to any site that loads third-party JavaScript from a vendor. The code was not planted in a file on the victims' own servers. It was written into a field inside each customer's Optimizely account, and Optimizely's content delivery network (CDN, the global cache of servers that serves the script to browsers) delivered it faithfully to every visitor. If you embed an experimentation, analytics or tag-manager script from a vendor, a compromise of that vendor's platform reaches all of your visitors at once, and the browser-level defence most teams reach for cannot stop it. The counts describe scripts and organisations that were found poisoned, not confirmed harm to every visitor.

How it works

Optimizely Web gives each customer project a single JavaScript file, served from cdn.optimizely.com at a path built from the project ID. A browser on the customer's site loads that file on every page, and it runs the experiments, variant swaps and tracking the customer configured. Inside the project there is a field called Project JavaScript (projectJS), where a customer can put their own code to run ahead of every experiment. Whatever goes in that field is compiled into the file the CDN serves.

The attackers wrote their code into that projectJS field across many customer projects. Everything else in each snippet was left intact, so the file kept doing its normal job while carrying the extra payload. Because the change was made at the source, inside the project, the CDN had nothing to detect. Helme was explicit that this was not CDN cache poisoning: the CDN served exactly what it had been given, over Optimizely's own TLS certificate, from Optimizely's own hostname. To a browser, and to any check that trusts the vendor domain, the file looked completely legitimate.

How the attackers got write access to so many separate customer projects is not established. Report URI said plainly that it does not know, and named a compromised Optimizely system or a credential with cross-customer reach as possibilities. Optimizely was later reported to have blamed a flaw in its Experimentation account signup flow, but that came from the company through a single outlet and is not independently confirmed, so treat the entry point as open.

What attackers are doing

The payload carried several modules and was rebuilt around 26 times during the day as the operators tuned it. The crypto module is a clipper: it watches page text, form fields, the clipboard and outgoing requests for a cryptocurrency wallet address and swaps in one of the attacker's. A card skimmer, added at 13:43 UTC, read card numbers typed into a site's own form fields, checking each entry for a valid Luhn checksum and a known card prefix before stealing it. Payments handled inside a hosted iframe from a payment provider were not exposed, because the skimmer could only read the page it ran on.

Two more modules widened the reach. One exfiltrated non-HttpOnly cookies and html2canvas screenshots to attacker servers. The other served mobile exploit chains: Coruna for iPhones on iOS 13 through 17, and DarkSword for iOS 18.x, both already known from earlier crypto-theft campaigns. By 19:25 UTC on 16 November the attacker wallets had received about 7,000 US dollars, most of it in Bitcoin, with the rest spread across Litecoin, Ethereum and TRON.

The cleanup was fast. The first injection showed up around 04:21 UTC on a BBC snippet, a mass clean-up ran through the evening, and by 21:52 UTC only one of the 188 files (TalkTalk) was still infected. Counts differ slightly: Report URI puts it at 188 scripts across 178 organisations, while Helme separately counted 186 confirmed infected sites, and the real total is probably higher because only snippets found in time could be checked.

What to do

First, inventory the third-party JavaScript on your payment and login pages. Open those pages, list every script the browser loads from a domain you do not own (experimentation, analytics, tag managers, chat widgets, consent banners), and record who controls each one. Any script from a vendor CDN can be changed by that vendor or anyone who compromises the vendor account, on the page where card and credential data is typed.

Set a strict Content-Security-Policy (CSP, an HTTP response header that tells the browser which sources of script and network traffic to allow). Use a script-src allowlist of the exact hosts you expect, keep connect-src tight so stolen data cannot be posted to an unknown server, and avoid strict-dynamic and unsafe-eval, which let an already-trusted script pull in further code. In Report URI's own sample, of 256 affected hosts, 68 had no CSP at all and only 24 (15 percent) had a policy strict enough to block the payload. A tight policy does not stop the poisoned vendor file from loading, since you trust that vendor's domain, but it does stop the next stages: loading the attacker's extra scripts and sending stolen data out. Point report-uri and report-to at a collector so a blocked attempt reaches you.

Content-Security-Policy:
  default-src 'self';
  script-src 'self' https://cdn.optimizely.com;
  connect-src 'self' https://logx.optimizely.com;
  object-src 'none'; base-uri 'self';
  report-uri https://<you>.report-uri.com/r/d/csp/enforce;
  report-to csp

Do not expect Subresource Integrity (SRI) to cover this. SRI pins a script to a known hash and blocks it if the file changes. The Optimizely file is generated from your project and changes legitimately every time someone edits an experiment, so there is no stable hash to pin, and SRI is not usable for config-driven vendor scripts. CSP is the control that limits the blast radius here.

Check for the behaviour, not just the domain. In your account's Project JavaScript field and in the file the CDN serves, look for code that reads document.cookie, hooks fetch or XMLHttpRequest, rewrites wallet addresses, or calls out to a domain you do not recognise. If you run an Optimizely project, review the change history on that field and confirm nobody added code you cannot account for.

If your site was on the affected list, tell customers who entered card or login details during the exposure window to watch their statements and, where they can, treat the password as exposed. You do not need to rotate anything on your own infrastructure, because the compromise was in the vendor's delivery path rather than your servers. If you were a visitor to an affected site on 16 November and typed a card into one of its pages, keep an eye on that card for unexpected charges.

The wider lesson

Every third-party script on a page runs with the same access as your own code: it can read the forms, the cookies and the clipboard. Teams tend to vet a vendor once, at onboarding, then trust the file the vendor serves for as long as the contract lasts. A one-time review does not help on the day the vendor is compromised. A CSP with a tight script-src and connect-src, and an inventory of what loads on your sensitive pages, are what limit the damage then.

Our web application penetration testing checks which third-party scripts load on your payment and login pages and whether your CSP would actually contain a compromised one, and our attack surface management keeps that inventory current as vendors and tags change. Open the chat and Yaali, our AI agent, will pass your question to the engineer who would do the work.


Sources: Report URI, StepSecurity (OPTIMJACK analysis), BleepingComputer, The Defiant, Gizmodo.

Back to the blog, or read this post on the full site.