November 25, 2026

Nobody's Servers Were Breached. 178 Organizations Served Malware Anyway: Lessons From the Optimizely Snippet Hijack

On November 16, 2026, an attacker exploited a flaw in Optimizely Web Experimentation and wrote malicious JavaScript into some customers’ projects. Optimizely says the attacker used a weakness in the account signup flow to impersonate users on targeted customer accounts, and that no passwords were stolen (Optimizely’s incident notice). On November 24, CISA added the flaw, CVE-2026-132224, to its catalog of known exploited vulnerabilities (CISA alert). The bug lived in Optimizely’s hosted service and has been fixed there, so there’s no patch for customers to install. Everything here is current as of November 24 (US Eastern).

What happened

Optimizely Web Experimentation works through a single tag on your site. It loads a JavaScript “snippet” from Optimizely’s servers, and the snippet swaps headlines, buttons and layouts according to the experiments you’ve set up. Each snippet also carries a field called Project JavaScript, where customers can write their own code in the Optimizely dashboard. Whatever goes in that field runs on every page that loads the tag. That’s the field the attacker wrote to.

The first detailed account came from Scott Helme’s team at Report URI. They fetched 1,611 Optimizely snippets and found malicious code in 188 of them, belonging to 178 organizations. The list includes some of the most visited sites in the world, among them the BBC, CNN and Zoom (Report URI’s write-up). They could only check the snippets they managed to find, so the real number is probably higher. Optimizely puts the share of affected customers at under 5%.

The part worth sitting with: not one of these companies had its own servers breached. The malicious code came from the same Optimizely domain, with the same certificate, that every one of those sites already trusted. Companies that served the snippet from their own domain were hit too, since the content still came from the same Optimizely project.

The two primary sources disagree slightly on timing. Optimizely’s report says the first malicious code was written at 07:51 UTC on the 16th, detected at 13:34, the vulnerability closed at 16:10, and the code removed from every affected project by 22:24 UTC (Optimizely’s customer incident report, PDF). Report URI says it saw one site’s snippet calling out to the attacker’s server at 04:21 UTC. Optimizely’s investigation, with an outside forensics firm, is still under way.

What the injected code did

According to Report URI, the injected code was a short loader that pulled the real payload, track.js, from an attacker-controlled server. The payload was rebuilt 26 times over the day as features were added.

It did four things. It swapped cryptocurrency wallet addresses for the attacker’s, in page text, form fields and anything a visitor copied. From 13:43 UTC, it skimmed card numbers, expiry dates and security codes typed into the site’s own forms. It sent off cookies not marked HttpOnly, along with screenshots of the page. And on iPhones and iPads it loaded iOS exploit kits. Report URI advises anyone who visited an affected site that day to update to iOS 18.7.3 or later, or 26.3 or later.

Optimizely’s report describes the script as aimed only at payment details and crypto activity, and doesn’t mention the cookies or the iOS kits. That’s a point where the two accounts differ.

Where they agree: card numbers entered in a payment provider’s hosted iframe, such as Stripe’s or Adyen’s, were out of the script’s reach.

Why CSP stopped it on some sites and not others

Report URI also looked at whether the affected organizations’ Content Security Policy would have stopped the attack. CSP is the header that tells the browser where a page may load scripts from and where it may send data. Of the 159 organizations they could evaluate, 68 had no CSP at all, 50 had one that let both the payload and the data theft through, 17 blocked the data theft but not the payload, and 24, or 15%, blocked the payload outright.

The difference between those groups is the useful part. Allowing cdn.optimizely.com did nothing, because the malicious code came from that very host. What worked was a script-src that listed only the hosts the site actually needed. On those sites, the loader couldn’t fetch track.js from the attacker’s domain.

Two settings let it through. 'strict-dynamic' extends trust to any script a trusted script inserts. And 'unsafe-eval', which Optimizely’s own documentation tells customers to allow, opened the door to a fallback the attacker had built in: a full inline copy of the payload, run through eval whenever the external file was blocked. Report URI found at least one site whose CSP blocked both the external payload and the data theft, only for the inline copy to run anyway.

Sites that restricted connect-src kept card numbers, cookies and screenshots from leaving the page. That doesn’t stop address swapping, though, which happens entirely inside the page. No single directive covers everything. Restricting both where scripts come from and where data goes is what shrinks the damage.

If you use Optimizely Web

Optimizely says it has contacted every Web Experimentation customer directly to confirm whether they were affected. If you haven’t heard from them, ask your account contact.

Between Optimizely’s report and Report URI’s advice, the first step is to open the Project JavaScript of every project and the custom code of every experiment, and look for 1688360.cc, atob( or anything you didn’t write. One version hid the domain in base64, so searching for the domain name alone won’t find it. Then review who and what can write to your Optimizely account, including users, API tokens and integrations, and rotate credentials.

Next, work out which pages ran the snippet on November 16. If it was on a page where customers type card details into your own form, or make crypto transfers, Optimizely says to treat the risk as high. Review card transactions from that window, and if you keep session tokens in cookies without HttpOnly, rotate them. Keep your web server, CDN, WAF, CSP report and payment logs for at least the whole of the 16th (UTC). Given the gap between 04:21 and 07:51, don’t trim the window to Optimizely’s times alone. Optimizely’s report also tells customers to check with their own legal advisers whether they have notification obligations to customers or regulators. Our article on what to do in the first 24 hours after a compromise covers that step in more detail.

Optimizely has withdrawn its early guidance to switch the snippet off, and says it’s now safe to re-enable.

Managing third-party tags

This part applies whether or not you use Optimizely. Report URI found that the same attacker had been injecting code through Kissmetrics, StorifyMe and Minute Media scripts since November 13, three days earlier. This isn’t about one vendor. It’s about what third-party scripts are.

Analytics, A/B testing, chat and ad tags all run on every page with the same power as your own code. Tag managers are the same: anyone who can log in can put any JavaScript on any page. Your site’s security ends up depending on everyone who holds an account with each of those vendors, and on how well each vendor protects itself. In our view, the admin screen of a third-party tag deserves the same care as a server administrator account. For a case where one employee’s account reached production, and how to prevent it, see what the 1Password breach teaches about protecting your GitHub.

That comes down to three things. First, take inventory. Write down which vendors’ scripts run on which pages, and who can get into each dashboard. Tags from finished experiments and expired contracts linger more often than you’d think.

Second, take unnecessary tags off pages where people enter sensitive information. Optimizely itself now recommends removing the snippet from payment pages where you aren’t running experiments. And if card entry happens inside your payment provider’s hosted fields rather than your own form, an incident like this one can’t reach the card number.

Third, CSP. Don’t start by blocking. Deploy it in report-only mode first, and learn what your pages actually load and where they send data. Once you know the normal pattern, a new script source or data destination showing up out of nowhere is exactly the signal that would have flagged this attack.

# Report violations only; nothing is blocked yet
Content-Security-Policy-Report-Only: script-src 'self' https://tags.example.com; connect-src 'self' https://collect.example.com; report-uri /csp-report

One more note. Subresource Integrity, which lets the browser verify a script hasn’t changed, doesn’t work for tags like these. An A/B testing snippet changes every time you edit an experiment, so there’s no fixed hash to pin. That’s why limiting script sources and data destinations with CSP, and limiting who can edit the dashboard, are the defenses that actually hold up.

We take inventory of third-party tags and roll out CSP without breaking pages as part of building and running websites. If you’re not sure what’s running on your site, get in touch. To check your site yourself first, see our guide to checking your website’s security with free tools.

Free security consultations

We are currently taking free consultations on security. Questions like "Is our site safe?" or "Where should we start checking?" are welcome.

Super Sonic Design accepts consultations on website creation, application design, etc. Please feel free to contact us.
inquiring
他の最新記事
カテゴリー