Optimizely Script Breach Exposed 178 Company Websites to Data Theft

Nov 18, 2026 998 views

The Optimizely breach shows how a trusted marketing script can become a direct route to customer data. Attackers altered custom JavaScript in the company’s Web Experimentation platform and used it to target at least 178 websites, including properties belonging to Zoom, GitLab, Starbucks, IKEA, Mattel, Costco and HSBC. Salesforce also confirmed that some of its websites were affected.

UK security researcher Scott Helme, founder of Report URI, identified the compromised sites and said the count reflects cases his team directly observed with the same infection. The total could be higher. In its customer notice, Optimizely said attackers exploited a flaw in the Experimentation account signup flow to impersonate a user and add malicious JavaScript to customer projects.

Malware rode inside a trusted script

Optimizely customers load a JavaScript snippet from the company’s content delivery network. The snippet can include customer-written code in a field called Project JavaScript. According to Helme’s report, attackers inserted their code into that field while leaving the rest of each snippet intact. The compromised code continued to arrive from Optimizely’s CDN under Optimizely’s certificate, on a host affected sites already trusted.

That placement let the malicious script operate in the context of each customer’s website. It monitored form submissions and POST requests made through fetch or XMLHttpRequest, looking for card numbers, expiration dates and CVV codes. When it found all three, it sent them to https://1688360[.]cc/card[.]php using navigator.sendBeacon.

Hosted payment fields, including those from Stripe and Adyen, were outside the script’s reach. Card details entered directly into a website’s own form fields could be captured. The malware also replaced cryptocurrency wallet addresses, stole cookies and screenshots, and delivered the Coruna and DarkSword iOS exploit kits to iPhones and iPads.

“The important lesson here is that trusted JavaScript doesn’t always remain trustworthy,” Helme wrote. A third-party dependency can compromise a site even when the site’s own code and infrastructure haven’t been breached.

Fix claims and incident timing remain under scrutiny

Optimizely said it blocked access to the vulnerable signup path and deployed a fix. The company also said it ended active sessions, revoked tokens, reset access for affected accounts, removed injected code from customer projects and blocked its delivery through Cloudflare. It described the Experimentation platform as fully secured and said JavaScript modification was no longer possible.

Frank Dickson, principal analyst at Dickson Research, questioned the certainty of those statements while the investigation was still underway. He pointed to a gap between Optimizely’s published timeline and Report URI’s observations: Optimizely placed the first malicious write at 07:51, while Report URI saw the BBC’s Optimizely snippet load attacker code at 04:21, three and a half hours earlier.

“Customers need the real start time to scope their exposure,” Dickson said, arguing that the forensic findings should reconcile the difference. He also cautioned against definitive assurances before the investigation is complete. Helme said he couldn’t yet verify that the flaw had been fixed; some infected sites had been cleaned, but he was waiting to see whether any were reinfected.

Content security settings can limit exposure

Dickson raised a separate concern about Optimizely’s guidance to allow unsafe-eval in customers’ content security policies. At HSBC, he said, the policy blocked the main payload and data theft, but a backup version of the malicious code still ran through that setting.

He recommended restricting script-src to the hosts a page needs, limiting connect-src destinations, and removing unsafe-eval where possible. Teams can start in report-only mode to identify breakage before enforcing changes. These controls can reduce what an injected script can do, though they don’t replace fixing the compromised account flow.

Attribution is still tentative

Helme said the code contained extensive Chinese writing and that the attack infrastructure had links to other Chinese actors. He described the operators as likely a small group of thieves, while acknowledging they could also be trying to create that impression. The stolen data and malware’s functions, in his view, made state involvement unlikely.

The incident’s reach makes the remaining forensic details consequential for customers: the confirmed exposure window, the full list of affected projects and evidence that the signup flaw can no longer be abused. For teams relying on third-party scripts, the immediate lesson is to treat every vendor-controlled browser dependency as code with access to the page and its users’ data.

Source: Christopher Johnson · www.csoonline.com

Comments

Sign in to comment.
No comments yet. Be the first to comment.

Related Articles

Optimizely confirms massive cyberattack on customer websi...