The Optimizely attack on November 16, 2026 turned a trusted marketing script into a card skimmer and crypto stealer on major websites. Optimizely says an attacker "exploited a flaw in the Optimizely Web Experimentation account signup flow." The attacker then impersonated users on customer accounts and added malicious JavaScript to their projects. Researcher Scott Helme of Report URI counted 178 affected organizations, including Zoom, the BBC, CNN, Salesforce and GitLab, according to CSO Online and CMSWire.
Optimizely says it closed the hole the same day and removed the code. So why write about the Optimizely attack two weeks later? Because the lesson applies to almost every site our readers run. Nonprofit, association and agency sites load scripts from analytics, chat, A/B testing, donation and ad vendors. Any of them could be the next delivery route. This post covers what happened, why common defenses did not help, and what to change on your own sites. Facts are as of November 22, 2026.
The short version: list every third-party script on your sites, starting with pages that take payments or logins. Keep card entry inside your payment provider’s hosted fields. Add a Content Security Policy that limits where scripts can load from and, just as important, where data can be sent. Remove marketing tags from checkout and donation pages entirely.
What happened in the Optimizely attack
Optimizely’s incident page gives its account in its November 18 update. An unauthorized party exploited the signup flaw and "used it to impersonate users on targeted customer accounts and insert malicious JavaScript into those customers’ projects."
Optimizely says it detected the activity on the day it began. It says it "blocked delivery of the malicious code and closed the vulnerability within three hours of detection." It also says "No malicious code remains in our systems" and "This was not a credentials breach."
On scope, Optimizely says "Less than 5% of our customers were impacted" and "No other Optimizely product was affected." It says it contacted every Web Experimentation customer directly.
Independent researchers add detail. According to StepSecurity’s write-up, which collects Report URI’s findings, the timeline in UTC ran like this:
| Time (UTC, Nov 16) | Event | Source |
|---|---|---|
| 04:21 | A BBC snippet starts loading attacker code | Report URI, via StepSecurity |
| 13:43 | A card skimmer appears in the payload | Report URI, via StepSecurity |
| About 20:40 to 21:10 | Cleanup of injected code | StepSecurity |
| 23:11 | Every checked file is clean | Report URI, via StepSecurity |
StepSecurity says the exposure window for most sites was about 16 hours. CSO Online reports that Report URI’s first sighting came hours before the first malicious write in Optimizely’s own timeline. That gap has not been explained publicly.
What the Optimizely attack code did
The attacker did not poison Optimizely’s servers or certificates. StepSecurity says the loader was written into each project’s "Project JavaScript" field. The rest of the snippet was untouched. It was served from cdn.optimizely.com with Optimizely’s own certificate, exactly as normal.
According to StepSecurity, the payload did several things:
- Swapped crypto wallet addresses on screen and on the clipboard, across eight cryptocurrencies.
- Skimmed payment cards from forms on the page.
- Took screenshots and cookies and sent them to the attacker.
Estimated crypto losses were small, in the thousands of dollars, according to The Paypers and StepSecurity. Helme said there was no evidence card details were actually captured, according to The Paypers. But nobody outside Optimizely and the attacker knows exactly what was taken. That depends on each site’s own logs.
Why SRI and consent banners did not help in the Optimizely attack
Two common defenses did nothing here.
Subresource Integrity (SRI) pins a script to a known hash, so the browser refuses a changed file. It works for libraries that rarely change. It does not work for experimentation snippets. StepSecurity puts it plainly: "A snippet that changes whenever a team publishes an experiment cannot be pinned to one hash."
Consent banners decide when a script loads, not what it contains. Once a visitor clicked accept, the poisoned snippet ran like any other.
Allowlisting the vendor’s domain also failed by itself. The bad code came from cdn.optimizely.com, so any policy that trusted Optimizely trusted the attacker too.
What would have limited the Optimizely attack
The defense that held up was a Content Security Policy (CSP) that limits where data can go, not only where scripts come from.
A CSP is an HTTP header that tells the browser which sources a page may load and contact. StepSecurity explains the two parts that matter:
script-srcwith a list of named hosts stops a loader from pulling code from an unknown domain.connect-srcwith a list of named hosts stops stolen data from being sent to an unknown domain.
StepSecurity also warns that a policy built on 'strict-dynamic' with nonces does not stop this kind of attack. That mode trusts any script a trusted script adds. Report URI’s crawl, cited by Corgea, found 68 affected organizations had no CSP at all.
CSP takes work. Marketing teams add tags often, and a strict policy will break a new tag until someone updates it. Start in report-only mode, collect a few weeks of reports, then enforce. Do this first on pages that take payments, logins or personal data.
A checklist after the Optimizely attack
Use this for your own sites and client sites:
-
List every third-party script. Check templates, tag managers and plugins. Note which pages each one runs on.
-
Strip scripts from sensitive pages. Checkout, donation, login and account pages should load only what they need to work. Analytics and testing tags rarely need to be there.
-
Use hosted payment fields. Keep card entry in your payment provider’s cross-origin iframe. Optimizely told customers that cards entered in hosted payment iframes were out of reach, according to Corgea’s summary of its interim report.
-
Add a CSP. Start with
script-srcandconnect-srcallowlists in report-only mode, then enforce. -
Lock down vendor accounts. Turn on single sign-on or multi-factor sign-in for every tag manager and testing tool. Remove old users.
-
Watch for changes. Some tools can alert you when a third-party script’s content changes. For experimentation tools, review custom code fields after each publish.
Our post on card testing on donation forms covers other payment-page risks. Our WordPress plugin vulnerability report covers the plugin side of the same problem.
If you used Optimizely Web Experimentation
Optimizely says it contacted every affected customer. If you use it, confirm you received that message and read its guidance. Researchers also suggest these steps, based on StepSecurity’s and Corgea’s write-ups:
- Read the Project JavaScript field and custom code in every project.
- Search web, CDN and CSP logs from 04:00 UTC on November 16 for unknown hosts.
- Review account users, API tokens and audit logs.
- Rotate any session cookies on affected domains that scripts can read.
If you run Optimizely’s CMS rather than its experimentation product, Optimizely says no other product was affected. Our post on .NET 8 end of support for Optimizely sites covers the CMS side.
Frequently Asked Questions
What was the Optimizely attack?
On November 16, 2026, an attacker exploited a flaw in Optimizely Web Experimentation’s account signup flow, impersonated users on customer accounts and inserted malicious JavaScript into their projects.
How many sites were affected by the Optimizely attack?
Optimizely says fewer than 5% of its customers. Researcher Scott Helme of Report URI counted 178 organizations, according to CSO Online and CMSWire.
Was it a credentials breach?
Optimizely says “This was not a credentials breach.” The attacker used a signup flaw to impersonate existing users rather than stealing passwords.
Is Optimizely safe to use now?
Optimizely says it closed the vulnerability, removed the injected code and that “No malicious code remains in our systems.” Follow the guidance it sent customers.
Why didn’t Subresource Integrity stop it?
SRI pins a script to a fixed hash. Experimentation snippets change every time a team publishes a test, so there is no stable hash to pin.
What is a Content Security Policy?
A CSP is an HTTP header that tells the browser which sources a page may load scripts from and send data to. Limiting both blocks many script attacks.
Were payment cards stolen?
Unknown. The payload included a card skimmer. Helme said there was no evidence card details were captured, according to The Paypers. Each site’s own logs are the best evidence.
Does this affect the Optimizely CMS?
Optimizely says the incident was limited to Web Experimentation and no other Optimizely product was affected.