
178 organisations. One trusted script. A wake-up call for A/B testing.
The Optimizely security incident raises a bigger question for the experimentation industry: how much control should third-party tools have over your production website?
On 16 November 2026, some of the world's most recognisable websites began serving malicious JavaScript to their visitors.
Zoom. BBC. CNN. Salesforce. IKEA. HSBC. Different companies, different industries, different websites. One common dependency: Optimizely Web.
According to security researchers at Report URI, attackers used the experimentation platform to distribute malicious code through scripts trusted by 178 organisations. The same technology designed to improve website experiences had become a vehicle for compromising them.
And that should make everyone building, buying or deploying A/B testing software pay attention.
What happened in the Optimizely security incident?
On 16 November 2026, security researcher Scott Helme of Report URI disclosed a large-scale malicious JavaScript injection affecting websites using Optimizely Web.
Researchers examined 1,611 Optimizely JavaScript snippets and identified 188 infected snippets associated with 178 organisations.
The malicious code was inserted into Optimizely's Project JavaScript functionality, which allows custom JavaScript to execute on pages where the experimentation snippet is installed. The injected code was then distributed through legitimate, trusted script delivery infrastructure.
This is an important distinction. Attackers didn't need to compromise the underlying infrastructure of every affected website. They exploited a shared software dependency that those websites had already authorised to execute code.
According to the investigation, the malware was capable of:
- Replacing cryptocurrency wallet addresses with attacker-controlled destinations
- Capturing payment-card information
- Stealing browser cookies and screenshots
- Delivering exploit code targeting vulnerable iOS devices
The number of visitors who executed the malicious code, and the full extent of resulting compromises, remain unknown.
Optimizely subsequently confirmed that an unauthorised party had exploited a vulnerability in its Experimentation account signup flow. The company reported taking steps to fix the vulnerability, remove malicious code and secure affected accounts.
Sources: Report URI investigation · BleepingComputer reporting · Reuters coverage
The hidden risk behind client-side experimentation
A/B testing has become a fundamental part of modern digital growth. Marketing teams use it to improve landing pages. Product teams use it to validate experiences. Growth teams use it to identify opportunities that might otherwise go unnoticed.
And for good reason. Experimentation replaces assumptions with evidence. But the way many experimentation platforms deliver those experiences introduces an important security consideration.
Traditional client-side A/B testing often relies on a JavaScript snippet installed on a website. That snippet communicates with an experimentation service and can modify the page after it loads. Depending on its capabilities and configuration, the script may be able to change content, manipulate elements, load additional resources or execute custom code.
That flexibility makes experimentation powerful. It also means the experimentation platform becomes part of the website's security boundary.
A trusted script is not necessarily a safe script forever.
Its contents can change. Its permissions may be broader than necessary. And a vulnerability in the system responsible for publishing that code can have consequences far beyond the experimentation platform itself.
The Optimizely incident demonstrates how a compromise in a shared dependency can create exposure across otherwise unrelated organisations.
When optimisation becomes a security dependency
Most businesses evaluate experimentation tools using familiar criteria. How easy is the visual editor? How quickly can we launch an experiment? How accurate is the reporting? Does it integrate with our analytics stack?
These are reasonable questions. But they are no longer enough. Businesses should also be asking:
- What code can the experimentation platform execute on our website?
- Who can publish or modify that code?
- What happens if the platform or an authorised account is compromised?
- Can we detect unexpected changes to delivered JavaScript?
- Can we immediately disable experiments without waiting for a third party?
These aren't arguments against experimentation. They're arguments for treating experimentation infrastructure with the same scrutiny applied to other production systems.
Could AI change how we approach experimentation?
At RunPivot, we believe the next generation of experimentation should do more than make it easier to launch tests. It should help teams make better decisions about what deserves to be tested in the first place.
Traditionally, the workflow has been relatively straightforward: develop an idea, build a variation, deploy the experiment, collect data, analyse the outcome. But what if teams could introduce another step before production?
Simulate before you experiment.
AI-powered simulations create an opportunity to evaluate proposed experiences using simulated user behaviour before exposing real visitors to a live test. Rather than deploying every promising idea, teams can explore potential responses, identify usability concerns, challenge assumptions and prioritise variations worth validating.
This doesn't replace real-world experimentation. Simulated users aren't real customers. Predictive models can't guarantee conversion outcomes, and simulations don't provide the same causal evidence as controlled experiments.
But they can provide another layer of insight before production deployment. And in a world where every production change introduces some degree of operational risk, being more selective about what we deploy is worth considering.
Better experimentation needs better security
AI simulations are only one part of the conversation. A secure experimentation platform still needs appropriate safeguards around how code is created, approved, delivered and executed. That includes principles such as:
Least-privilege execution
Experimentation tools should avoid unnecessary access to sensitive areas of a website.
Controlled publishing
Production changes should have appropriate authorisation, validation and traceability.
Script integrity monitoring
Teams should be able to identify unexpected changes to the code running in their visitors' browsers.
Rapid shutdown
Businesses need a reliable way to disable experiments when suspicious behaviour is detected.
Defence in depth
Content Security Policy, secure authentication, monitoring and appropriate isolation can help reduce exposure, although no individual control eliminates the risk.
Server-side experimentation can also reduce reliance on browser-delivered variation logic for suitable use cases. It introduces different security considerations, however, rather than eliminating them.
These are engineering principles the experimentation industry should continue to advance, not guarantees that every newer platform already provides.
Ideas for solving this
Principles are a starting point. The harder question is what would actually stop the next incident like this one. Here are the ideas we think the experimentation industry, RunPivot included, should be working towards. Some are available in parts of the market today, others are open problems, and none of them is a complete answer on its own.
Declarative changes, not arbitrary code
Most experiments only change copy, images, styles or layout. If variations are described as a limited set of allowlisted operations rather than free-form JavaScript, an attacker who reaches the publishing system can change a headline, not steal a card number. Custom code becomes an explicit, opt-in exception.
Customer-signed experiment payloads
Let the website owner hold a signing key and have the snippet refuse any configuration that isn't signed with it. A compromised vendor account, or a flaw in the vendor's signup flow, then can't push code to your visitors on its own.
Approval gates for anything that executes
Require a second reviewer, strong authentication and an audit trail before custom JavaScript reaches production, the same way most teams already protect code deploys. Fast publishing for safe changes; deliberate publishing for risky ones.
Keep experiments off sensitive pages
Checkout, login, account and payment pages rarely need client-side experiments. A snippet that refuses to run on routes the site owner marks as sensitive, backed by a stricter Content Security Policy on those routes, removes the most valuable targets from reach.
Lock down what scripts can do
Browser controls such as a tight Content Security Policy, Trusted Types and limited connect-src destinations can stop injected code from loading payloads or sending stolen data to an attacker's server, even if it does get delivered.
Watch what visitors actually receive
Hash and log the JavaScript delivered to browsers, and alert when it changes outside an approved publish. If the code your visitors run differs from what your team shipped, someone should know within minutes, not after a researcher writes it up.
A kill switch the customer controls
Site owners should be able to stop the experimentation script loading from their own side, through a first-party flag, tag manager rule or edge setting, without waiting on the vendor's support queue or status page.
Move suitable tests server-side or to the edge
Rendering variations before the page reaches the browser means visitors receive finished HTML rather than third-party code. It shifts the risk to your own infrastructure and deployment process rather than removing it, but that's infrastructure you already secure and monitor.
Ship fewer, better-chosen changes
Every live experiment is a production change. Using simulations to filter out weak ideas before launch means fewer variations, less custom code and a smaller surface to defend, while real experiments still decide what wins.
No single item on this list would have made the Optimizely incident impossible. Together, they change the question from "what can this script do on our site?" to "what are we deliberately allowing it to do, and how would we know if that changed?" That's the standard experimentation platforms should be held to.
The future isn't necessarily more experiments
For years, experimentation platforms have competed on how quickly teams can create and launch tests. More experiments. Faster iteration. Less friction. That approach has helped make data-driven optimisation accessible to businesses of all sizes.
But speed shouldn't be the only measure of progress. The next generation of experimentation should be judged by the quality of decisions it enables, the confidence teams have in those decisions and the controls protecting the environments where those decisions are tested.
At RunPivot, we're exploring how AI-native experimentation can help teams move from ideas to evidence more intelligently. That means using simulations to inform decisions, real-world experiments to validate outcomes and responsible engineering to support the entire process.
The Optimizely incident is a reminder that experimentation doesn't happen in isolation. It happens on real websites, serving real customers, with real consequences.
The goal shouldn't be to run as many experiments as possible. It should be to run the right experiments, with the right safeguards, for the right reasons.
References
- Scott Helme, Report URI. World's Largest Brands Infected With Malware Via Optimizely. 16 November 2026.
- Lawrence Abrams, BleepingComputer. Optimizely supply chain attack delivers malware. 16 November 2026.
- Reuters. Popular websites subverted in bid to steal crypto, target iPhone users. 17 November 2026.
Build smarter experiments with RunPivot
Explore how AI simulations and real-world experimentation can work together to help your team move from ideas to evidence.
Frequently asked questions
Published 17 November 2026. Incident details are based on public reporting by Report URI, BleepingComputer and Reuters at the time of publication and may change as investigations continue. RunPivot is not affiliated with Optimizely.