Breach Value Calculator

Optimizely Malicious JavaScript: What Happened and What to Check

Optimizely says a signup-flow flaw let an attacker inject JavaScript into customer projects on 16 Nov 2026. What happened and what to check.

What happened with Optimizely's malicious JavaScript? On 16 November 2026, an attacker inserted malicious JavaScript into some customer projects on Optimizely Web Experimentation, a tool websites use to test page changes. Optimizely says the attacker used a flaw in the account signup flow, that it closed the flaw within three hours of detection, and that the injected code has been removed.

Because the code was delivered through each site's own Optimizely snippet, it ran in visitors' browsers on the customer websites themselves. Below: what Optimizely has said, what the researchers who tracked the code found, and what site owners and visitors can check now. More case files are in Breaches: North America.

Case file

Field Value
Organisation Optimizely, for its Web Experimentation product. The affected websites belong to its customers
What was hit Customer projects in Web Experimentation, which Optimizely says the attacker reached by impersonating users on targeted customer accounts (Optimizely status page)
Entry point "a flaw in the Optimizely Web Experimentation account signup flow", per Optimizely's update of 18 November 2026
Identified 16 November 2026. Optimizely says it detected the activity on the day it began
Scale Optimizely's status page gives no count. Report URI: 188 infected snippets serving 178 organisations, out of 1,611 snippets it checked (Report URI)
What the code did Per Report URI: swapped cryptocurrency wallet addresses, captured card details typed into page forms, sent cookies and page screenshots out, and served iOS exploit kits
Other products None affected, Optimizely says; the incident was limited to Web Experimentation
Status Optimizely says the injected code was removed from affected projects, and that Web Experimentation customers have had remediation completed and received further guidance
Attribution None published by Optimizely or Report URI

What has Optimizely said?

Optimizely has posted two updates on its status page under the title "Web Experimentation Security Incident" (status.optimizely.com).

The first, at 01:02 UTC on 17 November 2026, says that "Earlier today, Optimizely identified a security incident in which an unauthorized party exploited a vulnerability". It reports the flaw fixed, the injected code removed from affected projects, affected user accounts secured, and new protections added to block unauthorised code delivery.

The second, at 14:49 UTC on 18 November 2026, gives more detail:

  • the attacker "exploited a flaw in the Optimizely Web Experimentation account signup flow" on 16 November;
  • the attacker impersonated users on targeted customer accounts and inserted malicious JavaScript into those customers' projects;
  • Optimizely detected it the same day, blocked delivery of the code and "closed the vulnerability within three hours of detection";
  • Optimizely describes it as not a credentials breach, and says no other product was affected;
  • customers who do not use Web Experimentation need to do nothing; those who do have had remediation completed and received further guidance from Optimizely.

The status page does not say how many projects were changed or describe the further guidance.

What did Report URI find?

Report URI, a service that collects browser security reports for websites, published its analysis on 16 November 2026 and updated it on 17 November. The author is Scott Helme (Report URI).

Its key figures:

Measure Report URI's figure
Optimizely snippets analysed 1,611
Snippets found infected 188
Organisations served the code 178
First injection seen 04:21 UTC, 16 November 2026
Payload rebuilt during the day 26 times
All infected files cleaned by 23:11 UTC, 16 November 2026
Received by the attacker's wallets about $7,040, "all within roughly nine hours on the 16th"

Report URI says the real number of affected organisations "is likely higher as we could only check snippets we could find in time." The organisations it lists include well-known news, finance and technology brands; its post names them, and we do not repeat the list here because none of those sites is said to have done anything wrong.

What did the injected code do?

According to Report URI, the code had four jobs:

  1. Crypto address swapping. "It swapped cryptocurrency wallet addresses for the attacker's," so a visitor copying a payment address could send funds to the wrong wallet. Report URI traced verified transactions to the attacker's wallets.
  2. Card capture. It read card number, expiry and security code from forms on the page. Report URI says cards entered in hosted payment iframes, where a payment provider serves the form in its own frame, were out of its reach.
  3. Cookie and screenshot theft. Cookies not marked HttpOnly, and screenshots of pages, were sent to the attacker.
  4. iOS exploit kits. It "delivered the Coruna and DarkSword iOS exploit kits" to iPhones and iPads. Report URI says iOS 18.7.3 and later, and iOS 26.3 and later, are patched.

Report URI also notes that Optimizely's own snippets for its main website and login site were affected.

How did the Optimizely attack work?

A testing tool like Optimizely works by letting a site run JavaScript that changes the page for some visitors: a new button colour, a different headline. The site adds one snippet, and the content of that snippet is managed from the tool's console.

Report URI describes the mechanism plainly: the attacker wrote code into each customer's Project JavaScript field, and Optimizely's content delivery network "served exactly what it was given." To the browser, the code came from the same trusted address as every legitimate experiment.

That is the core lesson. A third-party script runs with the same power as the site's own code. It can read forms, change links and send data elsewhere, whoever wrote it.

Who is affected, and who is not?

  • Site owners not using Optimizely Web Experimentation: Optimizely says no action is needed.
  • Site owners using it: Optimizely says remediation is complete and that these customers have received further guidance from it. Report URI's list is a separate, outside view.
  • Visitors: risk depends on which sites they used on 16 November 2026, what they typed, and which device they used. No list of affected visitors has been published.

Which websites were affected? Optimizely's status page lists no affected customers. Report URI's post names the 178 organisations it found, from the snippets it could check; this post does not repeat those names.

How should website owners respond to the Optimizely incident?

Drawing on Report URI's recommendations and Optimizely's updates:

  1. Read Optimizely's direct message to your account, and ask your account contact whether any of your projects were changed and when.
  2. Review your Project JavaScript and every live experiment for code you do not recognise. Report URI's post lists indicators to search for.
  3. Review and rotate Optimizely access: users, API tokens and integrations.
  4. Treat card entries on affected pages on 16 November as potentially exposed, and talk to your payment provider and acquirer about next steps.
  5. Rotate session tokens or secrets that were readable by page scripts that day.
  6. Tighten your Content Security Policy (the browser rule list of where a page may load code from and send data to), with reporting turned on. Details are in the section below.

This is general security information, not legal or compliance advice. Your acquirer and qualified security assessor decide what the card rules require of you.

What should visitors do?

Report URI suggests three checks: update iPhones and iPads to a patched iOS release, check recent crypto transfers for a destination address you did not intend, and watch card statements for payments you do not recognise.

Going deeper: for security and IT teams

Nothing here says what any affected organisation had or lacked in place. It is how this class of incident, malicious code served by a legitimate script provider, meets the controls teams usually rely on.

Threat model. The attacker needs write access to content a vendor serves into many sites, not access to the sites. Optimizely attributes that access to a signup-flow flaw combined with impersonation of users on targeted accounts. Once code is in a Project JavaScript field, every page carrying that snippet executes it in the visitor's origin, with access to the DOM, non-HttpOnly cookies, and form fields as they are typed. The payoff is many sites from one foothold: 188 infected snippets across 178 organisations in Report URI's count, from a single day.

Content Security Policy is not enough when the trusted host serves the payload. A CSP script-src allow-list answers "where may code come from?", not "is this code what we expect?". Report URI is direct: "Allowing cdn.optimizely.com was never going to help." In its analysis, "What separated the 24 protected sites from the rest was a restrictive script-src", and policies containing 'strict-dynamic' or 'unsafe-eval' let the payload's inline fallback run. Report URI adds that a tight connect-src (which limits where a page may send data) still "doesn't stop address swapping, which happens inside the page." Practical steps:

  • avoid 'unsafe-eval' and review whether 'strict-dynamic' widens trust beyond what you intend;
  • restrict connect-src to named endpoints so exfiltration to new hosts fails and is reported;
  • send violation reports with report-to (or the older report-uri) to a collector someone watches, and alert on new destination hosts.

Subresource Integrity (SRI) has a ceiling for dynamic scripts. The W3C SRI specification lets browsers "verify that a fetched resource has been delivered without unexpected manipulation", and tells them to "refuse to render or execute responses that fail an integrity check". It requires support for SHA-256, SHA-384 and SHA-512, and its stated goal fits this case: "Compromise of a third-party service should not automatically mean compromise of every site which includes its scripts." The limit is operational. An integrity hash pins one exact file. An experimentation snippet changes whenever a marketer edits a test, so a pinned hash either blocks legitimate updates or gets refreshed automatically, which would also accept a malicious edit. SRI also covers only the elements that carry the attribute, not code a script later fetches or builds at runtime. Where a vendor offers versioned, static builds, pin them; where it cannot, plan to rely on change monitoring instead.

PCI DSS 4.0.1 requirements 6.4.3 and 11.6.1. For pages that carry a payment form, the PCI Security Standards Council describes these as ensuring "payment page scripts are properly authorized, checked for integrity, and monitored for tampering" and preventing "unauthorized changes to web pages"; they have applied since 31 March 2025 (PCI SSC blog, 26 March 2025). The Council notes they "were only removed from SAQ A, and they are still in the standard", and that SAQ A merchants instead confirm their site is not susceptible to script attacks that could affect their e-commerce systems. An A/B testing snippet on a checkout page is a payment page script under this reading. Our PCI DSS 4.0 explainer covers scope and assessments.

Script inventory and change monitoring.

  • Keep an inventory per page of every script, its owner, its business reason and who can edit its content in the vendor console.
  • Monitor what the browser actually receives: fetch production pages on a schedule from outside, hash each script response and alert on any change not matched to an approved release or experiment.
  • Keep payment pages free of marketing and testing tags where possible; Report URI's note that hosted payment iframes were out of the skimmer's reach supports serving card entry from the provider's own frame.

Tag-manager and vendor-console governance. A tag manager or experimentation console is a code deployment path outside your release process. Require SSO and MFA for console users, limit who can publish JavaScript, review user and API token lists monthly, and log every publish event to your SIEM. Our third-party risk management guide covers tiering and contract terms for vendors like these; the same token and access hygiene applies to the integrations discussed in our API security breaches guide.

What to ask a script vendor. How is customer project content protected from other tenants and from new signups? Do you notify customers of every change to served code, and can we require approval before publish? Can we receive a feed of publish events for our account? Do you offer versioned builds that work with SRI?

Key takeaways

  • Optimizely says an attacker used a flaw in its Web Experimentation signup flow on 16 November 2026 to inject JavaScript into some customer projects; the flaw is closed and the code removed.
  • Report URI found the code in 188 of 1,611 snippets it checked, serving 178 organisations, and traced about $7,040 to the attacker's wallets.
  • A CSP that trusts a vendor's domain does not stop code the vendor's own servers deliver; a restrictive script-src and connect-src, plus reporting, narrow the damage.
  • SRI suits fixed files, not snippets that change with every experiment; monitor what the browser receives instead.
  • Keep testing and marketing scripts off payment pages, and treat vendor consoles as production deployment tools.

Sources

Read on 21 November 2026.

Spotted a mistake? Report a correction.