BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Optimizely Supply-Chain Attack Delivers Malware Through Websites of Major Global Brands

Optimizely Supply-Chain Attack Delivers Malware Through Websites of Major Global Brands

Listen to this article -  0:00

Some of the world's largest organisations have unknowingly been distributing malware to their website visitors after attackers compromised JavaScript delivered through Optimizely's Web Experimentation platform. The campaign affected at least 178 organisations, including the BBC, CNN, Zoom, Salesforce, GitLab, IKEA and Equifax, turning a widely trusted website experimentation service into a vehicle for cryptocurrency theft, payment-card skimming and browser data collection. Researchers also identified payloads that could exploit vulnerable Apple devices.

The incident is a particularly concerning example of a software supply-chain attack because the affected organisations did not necessarily need to be compromised individually. Instead, attackers exploited the trust these websites placed in a third-party service whose JavaScript was automatically executed in visitors' browsers. This allowed malicious code to reach users across otherwise unrelated websites, demonstrating how a compromise in a shared technology provider can have consequences far beyond its immediate customer environment.

The incident was traced to Optimizely's Web Experimentation product, which allows organisations to run A/B tests and personalise website experiences. Customers embed a JavaScript snippet supplied by Optimizely into their websites. Attackers exploited a vulnerability in the product's account signup flow to impersonate users with administrative access to customer projects and modify their JavaScript.

Attackers inserted the malicious code into a customer-configurable field called Project JavaScript. This meant the modified files continued to be served from Optimizely's legitimate CDN, complete with its valid security certificate. To visitors and their browsers, the scripts appeared to originate from a trusted source. Importantly, this was not a CDN cache-poisoning attack or a conventional theft of customer passwords.

Perhaps most concerning was its ability to deliver the Coruna and DarkSword exploit chains to vulnerable Apple devices. These exploit chains targeted known iOS vulnerabilities, potentially allowing attackers to gain deeper access to affected iPhones and iPads. The payment-card component could not access information entered into isolated, hosted payment frames such as Stripe or Adyen, but cards entered directly into website forms were potentially exposed.

Modern websites routinely load scripts from analytics providers, advertising platforms, experimentation tools, and other external services. These scripts execute within the visitor's browser and can interact with page content, making them powerful components of the web application.

In this case, the malicious code was loaded automatically when visitors accessed affected websites. No download or deliberate interaction with a suspicious link was necessarily required.

Security researchers also highlighted the limited use of properly enforced Content Security Policies (CSPs). CSP allows website operators to restrict which domains can execute scripts or provide other resources. A sufficiently restrictive policy could have blocked the attacker's external payload, even though the initial script came from a trusted Optimizely domain.

The incident therefore exposed a weakness not only in third-party dependency management, but also in how organisations control what those dependencies are permitted to execute.

Optimizely confirmed that attackers exploited the signup-flow vulnerability on 16 November 2026. The company detected the activity, blocked the malicious outbound code, closed the vulnerability, revoked affected tokens, terminated active sessions, and removed injected code from customer projects.

According to its subsequent incident report, the vulnerability was remediated at 16:10 UTC, with malicious code removed from all affected projects by 22:24 UTC. Optimizely engaged Mandiant to assist with its forensic investigation and confirmed that the incident was limited to Web Experimentation, rather than its other experimentation products.

Report URI identified 188 infected snippets across 178 organisations after examining 1,611 scripts. It estimated that the actual number could be higher because its investigation could only examine the scripts it had identified. The researchers also traced approximately $7,040 in cryptocurrency payments to attacker-controlled wallets during the campaign.

The incident highlights a growing challenge for application security teams. Third-party JavaScript is effectively executable code supplied by another organisation, yet it is frequently treated as a routine integration rather than a dependency with significant security implications.

Technologies such as Subresource Integrity (SRI), Content Security Policy, script monitoring, and software supply-chain security tools offer different layers of protection. SRI can verify that externally loaded static resources have not changed, while CSP can restrict where scripts originate and what they are allowed to execute. However, dynamically changing experimentation scripts make these controls more complicated to implement.

The wider lesson is that trusting a third-party provider does not mean every future version of its code should automatically be trusted. Organisations need visibility into their external scripts, controls over their execution and mechanisms to detect unexpected changes.

As web applications become increasingly dependent on external services, supply-chain security must extend beyond libraries and build pipelines to include every piece of code executed in the user's browser.

About the Author

Rate this Article

Adoption
Style

BT