If you run a website, there is probably a line in your HTML that you did not write and do not read.
It loads a script from a company you pay. Marketing added it two years ago. It runs on every page, with the same access as your own code, and nobody on your team has opened it since.
On 16 November 2026, for 178 organisations, that line delivered malware.
What happened
Optimizely Web is an experimentation tool. Each customer adds one script tag to their site. That tag loads a “snippet” from Optimizely’s CDN, and the snippet holds Optimizely’s code, the customer’s experiments, and an optional field called Project JavaScript. That field holds custom code the customer writes in the Optimizely dashboard, which runs on every page.
Someone wrote their own code into that field across many unrelated customer projects.
Optimizely’s status page, posted at 01:02 UTC on 17 November, says “an unauthorized party exploited a vulnerability in Experimentation” and used it to add malicious JavaScript to some customer projects. It says the vulnerability is fixed and the injected code removed.
Scott Helme’s team at Report URI found it first. Their write-up is the primary account, and it is unusually precise:
- The first Optimizely injection they saw was at 04:21 UTC on 16 November.
- They fetched 1,611 distinct Optimizely snippets and found 188 infected, belonging to 178 organisations. They say the real number is likely higher, because they could only check snippets they found in time.
- The list includes Zoom, the BBC, CNN, Salesforce, GitLab, IKEA, HSBC, Equifax and Optimizely’s own login page.
- By 23:11 UTC every infected file they knew of had been cleaned.
That is roughly nineteen hours from the first injection Report URI saw to the last cleanup it knew of.
The part that matters most is in one sentence of their report. The file “was still served from cdn.optimizely.com, with Optimizely’s certificate, from a host that every affected site already trusted.”
Nothing about the delivery looked wrong. The domain was right. The certificate was right. The file name was the one each site had always loaded.
Only the contents had changed.
What the code did
Report URI describes the injected code doing four things at once. What a visitor experienced depended on their device and what they did on the page.
It swapped crypto wallet addresses. It found valid addresses on the page, in form fields and on the clipboard, and replaced them with the attacker’s. Copy an address while that tab was open, and you could paste someone else’s.
It skimmed cards. From 13:43 UTC it watched form submissions for a card number, expiry date and CVV, and sent them out once it had all three. Cards typed into hosted payment frames, like Stripe’s, were out of reach. Cards typed into a site’s own fields were not.
It took cookies and screenshots. Next to payment or wallet wording, it sent the page URL, any cookies not marked HttpOnly, and a rendered screenshot of the page.
It tried to break into iPhones. On iOS it loaded exploit kits in a hidden frame, chosen by iOS version. According to Report URI, the kit’s own comments say iOS 18.7.3 and later, and 26.3 and later, are patched.
On-chain, the attacker’s wallets had received about $7,040 by 19:25 UTC on 16 November, according to Report URI, and they were emptied early on 17 November. Report URI is clear that this is only what it can see: “We have no way to see how many credit cards were skimmed…”
Why the usual defences did not help
Most teams have three answers to “what if a third-party script goes bad?”
All three are reasonable.
All three were weak here.
“We only allow trusted domains.” Many sites allow cdn.optimizely.com in their Content Security Policy. That rule was never going to help. The malicious code arrived from the trusted host itself.
“We would have noticed.” The snippet is a file that changes every time a marketer publishes an experiment. A change to it looks like Tuesday.
“We use Subresource Integrity.” SRI pins a script to a hash. That works for a library that never changes. A snippet that changes with every experiment cannot be pinned to one hash, as StepSecurity’s analysis of this incident points out. Helme still calls SRI one of the first things to consider, and for static files he is right. It just does not fit this kind of file.
So the protection had to come from something else.
What actually stopped it
Report URI crawled the sites of the affected organisations and checked their Content Security Policy against what this payload needed. The four rows of their results add up to 159 organisations:
- 68 had no CSP at all.
- 50 had a CSP that let the payload run and send data out.
- 17 let the payload run but blocked the data from leaving. Report URI says that stopped card, cookie and screenshot theft, but not address swapping, which happens inside the page.
- 24 blocked the payload, about 15 percent.
What separated the 24 was a narrow script-src: a list of only the hosts the site really needs. The payload loaded its main file from a domain nobody would have allowed, so those sites refused it.
Two common settings let it straight through.
The first is 'strict-dynamic', which trusts any script that a trusted script inserts. The trusted Optimizely snippet inserted the attacker’s script, so it was trusted too.
The second is 'unsafe-eval'. The attacker shipped a backup copy of the payload that ran through eval if the main file was blocked. Report URI says this is what happened at HSBC: its CSP blocked the main file and the data theft, but the inline copy still ran.
The 17 partial cases teach the other half. connect-src, the rule for where a page may send data, decided whether the stolen data left.
My read of all this: a CSP is not a checkbox. The two lines that decided the outcome were the narrowest ones. Where can scripts come from, and where can data go?
What to do this week
If your site uses Optimizely Web, start with Report URI’s list and the indicators in Optimizely’s own account. Open every project’s Project JavaScript and every experiment’s custom code. Look for scripts you did not write, and for users, invitations or webhooks your team did not create. Review who and what can write to the account, revoke API tokens nobody can explain, and treat non-HttpOnly session cookies from 16 November as exposed. (Updated 27 November. This first said to rotate credentials, following Report URI’s early advice. Optimizely now says customers do not need to reset passwords or API tokens.)
If it does not, the incident still applies. Every tag manager, chat widget, analytics loader and A/B tool works the same way. Here is where I would begin:
- List every third-party script on your highest-value pages. Login, checkout, account settings. Write down who owns each one and why it is there. Most teams cannot answer the second question for at least one.
- Turn on CSP in Report-Only mode with reporting. It blocks nothing, so nothing breaks. You learn what your pages actually load and where they send data.
- Tighten
connect-srcfirst. It is often the easiest win. Your pages probably talk to a short list of hosts. Data theft needs a destination, and this rule decides which ones are allowed. - Then narrow
script-src. Drop'unsafe-eval'where you can. Be careful with'strict-dynamic'on pages that load tools which insert other scripts. - Watch for change, not just for bad files. A trusted file that suddenly loads a new domain is the signal. A script-monitoring tool, or even a scheduled job that fetches your third-party files every hour and diffs them, could have shown this change the same day.
- Keep card entry in the provider’s hosted frame. It was the one part of the payment flow this skimmer could not reach.
None of this needs new budget. It needs someone to own the question.
What is still not known
Optimizely says a vulnerability was exploited. It has not explained how one vulnerability gave the attacker write access across so many unrelated customer projects. Report URI says it does not know either.
Update, 27 November 2026. Optimizely has since explained it. In a public account dated 25 November, it says the attacker found a flaw in a legacy free-trial sign-up flow and used it to create trial accounts. The attacker then used “brute force informed by publicly available information” to find the addresses of real users at Optimizely’s customers, and that let it impersonate those users. Acting as them, it edited the custom code in customer projects. Optimizely says impersonation was a legacy feature and has been removed, the sign-up flow has been shut down, and its investigation so far indicates no passwords or credentials were stolen.
Its timeline adds to Report URI’s. Optimizely says early test code reached a small number of projects from 01:20 UTC on 16 November, before the first injection Report URI saw, and the main attack began at 07:51 UTC. It says a customer report at 13:34 UTC is how it found out, that it fixed the flaw at 16:10 UTC, and that the code was gone from every affected project by 22:24 UTC.
One detail bears on the CSP section above. Optimizely says the policy on www.optimizely.com blocked the code, while login.optimizely.com had its policy in report-only mode, so the code was served there. Report-Only is still the right first step, as step 2 says, but it only reports. Optimizely now advises switching to enforcement after a month of reports that cover checkout, login and forms, and says its login page now enforces its policy.
What is still open:
- What the code captured. Optimizely says it can see when the code was served from each project. “We can’t see what it captured inside a visitor’s browser, and neither could the independent researchers,” it says. Its investigation so far has not identified any confirmed card or crypto losses by any of its customers. Report URI’s on-chain figure of about $7,040, above, is a separate measure: what reached the attacker’s wallets.
- The iPhone stage. Optimizely says it is still assessing whether the exploit kits compromised any devices, and so far has had no reports of an infected device.
- The forensic report. Optimizely has brought in Mandiant and expects the final report in a few weeks. It is also investigating the impact on people who signed in to its login page during the incident.
Report URI also ties the operator to earlier activity through a reused cash-out address. That is their attribution, made from their data, and I am repeating it only as theirs.
The line in your HTML
Back to that script tag.
The Optimizely sites were not running vulnerable code of their own. They loaded a file from a provider they trusted, from the right domain, over the right certificate. That trust was the attack surface.
The question for Monday is not “do we trust this vendor?” You probably should. It is “if the file changed this afternoon, what would stop it, and who would know?”
For most sites, the honest answer is nothing, and nobody.
That is fixable. The 24 organisations that blocked this did not have better vendors than everyone else. They had narrower rules, written before they needed them.
Built from public sources as of 18 November 2026, with Optimizely’s own account of the attack added on 27 November 2026. Any mistakes are mine alone, and nothing here speaks for the companies mentioned.