Optimizely Script Compromise Reached at Least 178 Customer Websites
- James Smith
- 365 views
Malicious code was added through Optimizely’s Experimentation platform. Customers should review exposure timelines, script policies and third-party code.

A flaw in Optimizely’s Experimentation account signup flow let attackers add malicious JavaScript to customer projects, exposing at least 178 websites to code that could steal payment details and browser data. The incident shows how a trusted vendor script can become a route into customer pages even when those customers’ own systems have not been breached.
UK-based security researcher Scott Helme, founder of Report URI, said his team directly observed 178 affected sites carrying the same infection. He cautioned that the count could rise. The named organizations included Zoom, Paychex, Equifax, GitLab, Starbucks, IKEA, Mattel, American Eagle, Air France, Mutual of Omaha, Heineken, Home Chef, Cinnabon, Levi, Costco and HSBC.
Salesforce also said it was investigating unauthorized changes to Optimizely scripts used on some of its websites. As a precaution, the company said it had disabled those scripts across preview and production instances. That response is a useful indication of the immediate choice for teams using a shared third-party script: keep it active while the vendor investigates, or disable it and assess the effect on site features.
How the malicious code reached customer pages
Optimizely customers load a JavaScript snippet from the company’s content delivery network. The snippet can include Optimizely code, customer A/B tests and a field called Project JavaScript, where customers can add their own code. Helme’s report said attackers inserted their code into that field while leaving the rest of each snippet intact.
That detail helps explain why the code could appear trustworthy to a browser and to the affected sites. The altered file was still served from Optimizely’s domain and with its certificate, from a host the sites already trusted. Customers relying on the vendor’s script therefore faced a risk that did not require a change to their own application code or infrastructure.
The malicious kit had several functions, according to Helme. It could replace cryptocurrency wallet addresses, capture payment card details entered into a site’s own form fields, and collect cookies and screenshots. On iPhones and iPads, it also delivered the Coruna and DarkSword iOS exploit kits. The reported card theft watched form submissions and POST requests for a card number, expiry date and CVV, then sent captured data to an attacker-controlled address.
Helme said the code could not access card details entered into hosted payment iframes such as those provided by Stripe or Adyen. The distinction matters for web teams reviewing payment flows: the reported exposure depended in part on whether card information was entered into a site’s own fields or handled inside a hosted payment frame.
Optimizely’s response and the timeline gap
Optimizely said attackers exploited a vulnerability in the Experimentation account signup flow to impersonate a user and add JavaScript to some customer projects. The company said it blocked access to the vulnerable path and deployed a fix. It also said it ended active sessions, revoked tokens, reset access for affected accounts, removed injected code and blocked delivery of the code through Cloudflare.
The company described the platform as fully secured and said JavaScript modification was no longer possible. Frank Dickson, principal analyst at Dickson Research, urged caution while the investigation continued. He pointed to a difference between Optimizely’s reported first malicious write, at 07:51, and Report URI’s observation of attacker code loading in the BBC’s Optimizely snippet at 04:21. That is a gap of three and a half hours.
For affected customers, the start time helps define how far back to check logs, script activity and payment records. Dickson said the incident’s forensic timeline should reconcile the difference. Helme also said he could not yet verify whether the underlying flaw had been closed: some infected sites had been cleaned, but he was waiting to see whether they were reinfected.
Review script policy and third-party dependencies
Dickson highlighted Optimizely documentation that recommends allowing unsafe-eval in a site’s policy. He said HSBC’s policy blocked the main payload and data theft, while a backup copy of the malicious code ran through that setting. His concern was that a vendor setup recommendation could weaken a customer’s existing browser protections.
He recommended restricting script-src to the hosts a page needs, limiting connect-src destinations, and removing unsafe-eval where possible. He also advised starting changes in report-only mode so teams can identify breakage before enforcing a stricter policy. Those steps are guidance from Dickson; each site’s dependencies and policy need review before changes are applied.
Teams using Optimizely should establish whether the platform or its scripts were present on customer-facing and preview sites, check the vendor’s account of affected projects and exposure dates, and review whether scripts have been disabled or restored. Payment forms, session data and browser policy deserve particular attention given the functions Helme described.
The wider operational lesson is straightforward: a vendor-hosted script remains part of a customer’s attack surface, even when the customer does not host or edit the delivered file. Track third-party scripts, limit what they can execute and where they can send data, and ask vendors for a timeline that can be checked against your own logs.