An attacker used a flaw in Optimizely's account signup flow to write a card skimmer and crypto clipper into the experimentation scripts that well-known brands load on every page. None of those companies' own code was touched, and most of their browser security policies let the payload run anyway.
Key Takeaways
Third-party risk registers are built around suppliers that hold your data. The Optimizely incident on November 16 is a reminder that some of the most dangerous suppliers are the ones that run code on your website. An attacker wrote a few lines of JavaScript into the experimentation snippets that CNN, the BBC, Zoom, Salesforce, HSBC and IKEA load on their pages, and for most of a day visitors to those pages ran it. None of the victims' own source code or servers was modified. The script arrived from a domain they had approved, carrying the vendor's own certificate, and in the large majority of cases the browser's last line of defence waved it through.
Optimizely Web Experimentation works by having each customer load a vendor-hosted snippet that runs A/B tests and personalisation. Every snippet carries an optional "Project JavaScript" field for customer-written code that executes on each page load. According to The Hacker News, the attacker wrote a loader into that field and left the rest of the snippet unchanged. Researcher Scott Helme's firm, Report URI, first saw the code at 04:21 UTC in the BBC's snippet, then checked 1,611 snippets and found it in 188 belonging to 178 organisations, a figure it says is likely an undercount.
The loader came in three versions: a direct call to the payload domain, a Base64-encoded copy to slip past text searches, and one that carried the whole payload and ran it with eval() if the remote domain was blocked. ReversingLabs' analysis notes that some customers served the snippet from their own domains, such as opt.scheels.com and www.vodafone.com.au, so anyone hunting only for cdn.optimizely.com would miss them. It also records that Smartsheet's snippet was cleaned and then reinfected, which indicated the attacker could still modify that project during the clean-up. The firm's summary of the lesson is blunt: a trusted origin and a valid certificate "do not prove that the code remains safe."
What the code did depended on the visitor. It replaced cryptocurrency wallet addresses that appeared near words such as "wallet", "deposit" or "send". From 13:43 UTC a card skimmer captured card numbers, expiry dates and security codes typed into sites' own form fields, though it could not read hosted payment iframes from providers such as Stripe or Adyen. It also took non-HttpOnly cookies and page screenshots, and on iPhones and iPads tried to deliver the Coruna and DarkSword exploit kits. The Record reports that the code ran on 32 finance or banking websites, and that blockchain evidence tied at least $7,000 in theft to the campaign. Report URI cannot say how many cards, cookies or devices were compromised.
Content Security Policy is the control that is supposed to catch exactly this: a header that tells the browser which scripts may run and where data may be sent. Report URI reviewed the policies of 159 affected sites. Only 24 blocked the payload. Another 17 let it run but blocked the data leaving through their connect-src rules, which stopped the exfiltration while the wallet swapping still worked. Fifty had policies loose enough to allow everything relevant to the attack, and 68 had no policy at all.
Part of the gap is vendor guidance. CSO Online reports that Optimizely's own documentation recommends allowing unsafe-eval, and that at HSBC a backup copy of the malicious code ran through that setting. "A vendor's setup guide should not quietly loosen its customers' defenses," said Frank Dickson, principal analyst at Dickson Research. Allowing a vendor's domain by name offers no protection when the vendor's domain is the thing serving the attack. Salesforce, one of the confirmed victims, disabled Optimizely scripts across its preview and production instances as a precaution.
Optimizely says an attacker "exploited a vulnerability in the Experimentation account signup flow" to impersonate a user and add code to some customer projects. CMSWire reports that the company put the impact at fewer than 5% of customers, said the vulnerability was closed within three hours of detection, and stated, "This was not a credentials breach." It says it ended sessions, revoked tokens, reset affected accounts and removed the injected code. What its notices do not yet explain is how a flaw in signing up for an account gave write access to existing projects at so many unrelated companies. CSO also reports a timeline gap: Optimizely puts the first malicious write at 07:51, while Report URI saw attacker code loading about three and a half hours earlier.
That matters for scoping. Collin Hogue-Spears of Black Duck told The Record that affected companies need to reconstruct which pages loaded the infected snippet, for how long, and which card payments those pages processed in that window, counting any card entered on a page with a live skimmer and the company's own card form as exposed. A company cannot draw that window accurately while its supplier's start time is still in dispute. Johnny Mullaney of First Three Things, quoted by CMSWire, credited Optimizely's communication but put the governance point simply: "you can outsource the technology but not the risk."
The attacker's wallets took in around $7,000, a small sum against the reach this campaign had. The heavier cost sits with the 178 organisations now working out what a script they never wrote may have taken from their customers. A supplier that can change your website is part of your attack surface, and the contract, the access review and the browser policy all need to say so.
eBook
Optimizely's customers trusted a vendor-signed snippet much as developers trust a registry package. This blueprint sets out the visibility and policy controls for third-party code that a trusted source alone cannot provide.
Download
Infographic
This attack entered through an account signup flow and cashed out through card skimming and wallet swaps. The infographic tracks how fake account creation and automated fraud are hitting online businesses, and how few feel ready.
Download
Guide
Outside researchers mapped all 178 Optimizely victims before the vendor explained its signup flaw. This guide covers how to bring that kind of talent in to find logic bugs in your own flows before an attacker does.
Download
VulnCheck counted 100,222 CVEs in 2026, double last year, yet about 1.4% have been exploited, so choosing what to patch is now the job.
A cluster token with no expiry and plaintext AWS keys survived Zeabur's August rotation and opened 3.2 million secrets in October.
Black Kite found 76 of the 140 vendors most concentrated in finance carry a known exploited flaw, as supplier breaches climb.