Skip to main content
osky
Sección
Technology

On November 16, 2026, visitors to 178 organizations received malicious JavaScript even though none of those sites was hacked. The code arrived through Optimizely Web, the A/B testing platform those companies load on every page. Report URI, which spotted it, counts Zoom, the BBC, CNN, Salesforce, GitLab, IKEA, Equifax and several HSBC sites among the affected, including hsbc.com.mx. Optimizely confirmed the incident on its status page. For anyone who builds websites, the lesson is uncomfortable: a "trusted" script is still someone else's code running with all your permissions.

What happened

Every Optimizely Web customer loads a JavaScript "snippet" from cdn.optimizely.com. That file includes an optional field called Project JavaScript: custom code the customer writes in their dashboard and that runs on all of their pages. According to Report URI, the attacker wrote a loader there that pulled in a second file, track.js, from a domain of their own. The rest of the snippet stayed intact and kept coming from Optimizely's domain, with its certificate.

Report URI saw three variants of the loader: a plain <script> tag, the same URL hidden in base64 with atob(), and a full copy of the payload that ran via eval if the attacker's domain was blocked. It also clarifies that this was not cache poisoning: the CDN served exactly what it was given.

As for how the attacker got in, Optimizely says on its status page that "an unauthorized party exploited a vulnerability in Experimentation" to add malicious code to customer projects. A spokesperson told Gizmodo that the flaw was in the account registration flow of Experimentation and that all affected customers have been notified. The company says it fixed the vulnerability, removed the injected code, secured the affected accounts and added protections.

Diagrama de la ruta del ataque: el atacante inyecta código en Project JavaScript, la CDN de Optimizely lo sirve y el sitio del cliente lo carga; el payload cambia carteras cripto, roba tarjetas y cookies y lanza exploits para iOS

What the code did

According to Report URI's analysis, track.js did four things at once:

  • Swapped wallet addresses for BTC, ETH, TRON, Solana, TON and others in page text, forms and the clipboard.
  • Stole cards (number, expiration and CVV) typed into the site's own forms. Payment iframes like Stripe or Adyen were out of its reach.
  • Sent cookies without HttpOnly, the URL and a screenshot of the page.
  • On iPhone and iPad, loaded the Coruna and DarkSword exploit kits, which according to the kit's own comments don't work on iOS 18.7.3 or later, or on iOS 26.3 or later.

The attacker rebuilt the payload 26 times during the day. As of November 17, their wallets had received about 7,150 dollars in crypto. Report URI notes that it can't know how many cards, cookies or iOS devices were hit. Its count is 188 infected snippets out of 1,611 checked, and it warns that the real number is "probably higher." By 23:11 UTC on the 16th everything was clean, and the attacker's domains have since been suspended or stopped responding.

CSP saved almost nobody

The most useful part of the report for anyone running websites is the Content Security Policy analysis. Report URI checked the first-party hosts of the affected organizations: 68 had no CSP, 50 had one that let everything through, and only 24 blocked the payload.

Gráfica: 68 organizaciones sin CSP, 50 con una CSP que dejó pasar el payload y el robo, 17 donde connect-src frenó el robo y 24 donde el payload quedó bloqueado

Report URI highlights three details:

  • Allowing cdn.optimizely.com did nothing, because the code came from that very host.
  • 'strict-dynamic' trusts any script inserted by another trusted script, so it let track.js through. 'unsafe-eval', which according to Report URI Optimizely's documentation asks for, let the inline copy run. That's what happened at HSBC: its CSP blocked track.js, but the copy using eval ran anyway.
  • connect-src did help: in 17 organizations the code ran, but it couldn't send out cards, cookies or screenshots. The wallet swapping, which happens inside the page, still worked.

My take

This isn't a problem exclusive to Optimizely. Any marketing, analytics or A/B testing tag you paste into your site (and that someone on another team can edit from a dashboard) has the same power as your own code, without going through your repository or your review. Subresource Integrity (SRI) doesn't apply to files that change all the time, so the real defense is limiting what that code can load and where it can talk to.

If your site uses Optimizely Web, Report URI recommends reviewing the Project JavaScript and the code of every experiment, rotating credentials and tokens, treating any cards captured in your forms on November 16 as exposed, and deploying a CSP with a restricted connect-src. If you visited any of those sites that day, update your iPhone, check your crypto transfers and keep an eye on your account statement.

Sources