· JavaScript

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

Malware reached website visitors of numerous major global companies because attackers managed to compromise JavaScript delivered via Optimizely's Web Experimentation platform.


This breach, impacting at least 178 entities such as CNN, IKEA, Salesforce, Zoom, Equifax, BBC, and GitLab, transformed a commonly relied-upon website experimentation service into a mechanism for stealing payment cards, harvesting browser data, and illicit cryptocurrency acquisition. Furthermore, researchers discovered malicious payloads capable of exploiting certain vulnerable Apple devices. This event stands out as a particularly alarming instance of a software supply-chain attack because the affected organizations did not necessarily need to have been compromised individually; rather, the threat actors leveraged the inherent trust these websites held in an external service whose JavaScript was automatically run within visitors' browsers. This allowed malicious code to reach users across disparate websites, illustrating how a security failure within a shared technology provider can generate repercussions extending far beyond its immediate client base.

The problem originated with Optimizely's Web Experimentation product, which facilitates the personalization of website experiences and the running of A/B tests for organizations. Customers integrate a JavaScript snippet provided by Optimizely into their sites. Attackers managed to exploit a weakness within the product's account sign-up workflow, enabling them to mimic users possessing administrative privileges for customer projects and subsequently alter their JavaScript. The malicious code was inserted into a field designated as "Project JavaScript," a field that customers can configure. Consequently, the altered files continued to be served from Optimizely's legitimate Content Delivery Network, complete with its authentic security certificate, making the scripts appear to originate from a trusted source to visitors and their browsers.

Crucially, this situation was not a case of conventional password theft or a CDN cache-poisoning attack. Of significant concern was its capacity to deliver the Coruna and DarkSword exploit chains to vulnerable Apple devices. These exploit chains targeted known flaws in iOS, potentially giving attackers deeper access to compromised iPhones and iPads. While the payment-card aspect of the attack could not access details entered into isolated, hosted payment frames like Stripe or Adyen, any card numbers typed directly into website forms were potentially exposed.

External services, such as advertising platforms, analytics providers, and experimentation tools, are routinely loaded by modern websites via scripts. These scripts operate within the visitor's browser and possess the ability to interact with the page's content, making them potent elements of the web application. In this specific scenario, the harmful code loaded automatically once visitors accessed the affected sites; no deliberate action like clicking a suspicious link or initiating a download was required. Security experts also pointed to the limited deployment of properly enforced Content Security Policies (CSPs). A CSP, designed to let site operators dictate which domains are permitted to execute scripts or supply other resources, could have thwarted the attacker's external payload even though the initial script came from a trusted Optimizely domain. This incident thus revealed a vulnerability not only in how third-party dependencies are managed but also in the mechanisms organizations use to govern the execution of those dependencies.

Optimizely confirmed that the attackers exploited the signup-flow vulnerability on November 16, 2026. The company detected the activity, subsequently blocked the malicious outbound code, patched the vulnerability, revoked the compromised tokens, ended active sessions, and removed the injected code from customer projects. Its subsequent incident report stated that the vulnerability was fixed at 16:10 UTC, with all malicious code removed from affected projects by 22:24 UTC. Optimizely brought in Mandiant to aid in its forensic investigation and verified that the incident was confined to Web Experimentation, excluding its other experimentation offerings. After examining 1,611 scripts, the Report URI identified 188 infected snippets across 178 organizations, though it noted that the actual figure might be higher as its review was limited to the scripts it managed to pinpoint. During the campaign, researchers also tracked approximately $7,040 in cryptocurrency payments flowing into wallets controlled by the attackers.

This event underscores an escalating difficulty for teams focused on application security. Third-party JavaScript functions as executable code supplied by another entity, yet it is often treated merely as a routine integration rather than a dependency carrying substantial security weight. Tools such as Subresource Integrity (SRI), Content Security Policy, script monitoring, and specialized software supply-chain security solutions provide various defensive layers. SRI permits verification that static resources loaded externally have not been altered, while CSP restricts the origins from which scripts can come and what actions they are permitted to perform. However, the nature of dynamically changing experimentation scripts complicates the implementation of these protective measures. The broader takeaway is that merely trusting a vendor does not imply that every future iteration of their code should be automatically trusted. Organizations must possess deep insight into their external scripts, maintain control over how they run, and establish methods to detect any unforeseen modifications. As web applications grow more reliant on external services, supply-chain security needs to expand beyond just libraries and build pipelines to encompass every piece of code that runs within the user's browser.

Why it matters

This incident underscores the severe risks associated with trusting third-party JavaScript dependencies in web applications. Developers must implement stronger controls like Content Security Policies to limit the execution scope of external code. This highlights the need for rigorous supply-chain security practices beyond simple integration.

Earlier coverage

Related coverage

Also worth reading

  1. Angular 21.2.27 released, fixes component template capture during compile
  2. next.js 16.6.0-canary.0 released, adds experimental new server for Switchyard
  3. next.js 16.5.0-rc.4 released, featuring turbopack document chunking updates
  4. Browser DNS trace tool lets you follow recursive lookups from root to answer
  5. UK ministers blame AI-assisted hackers for DWP benefits system meltdown