· 8 min read

Attackers Put Malware in Optimizely Snippets on 178 Organisations' Sites, Including the BBC, Zoom and GitLab. Here Is the Third-Party Script Audit I'd Run on a Small Site.

On November 16, 2026, Scott Helme of Report URI published a post showing that attackers had written malicious JavaScript into Optimizely Web snippets belonging to 178 organisations. The names in his lead include Zoom, the BBC, CNN, Salesforce, GitLab, IKEA, HSBC and Equifax. The file was still served from cdn.optimizely.com with Optimizely's certificate. Every one of those sites did what it was supposed to do and loaded a script from a vendor it trusted.

I don't run Optimizely. I do have an analytics script and a newsletter form on my sites, and the mechanics here apply to any tag you paste into a <head>.

What happened

Helme's post says the attacker used the snippet's optional "Project JavaScript" field, which runs on every page where the snippet loads. The rest of the snippet was left alone. He is explicit that this was not CDN cache poisoning. The CDN served what it was given. How the attacker got write access to so many customers' projects is not known, and he says that's for Optimizely to explain. Optimizely's own sites carried the code too. The part of the post I could read doesn't include a statement from the company.

The injected code added a script tag pointing at 1688360.cc/track.js. Helme found three variants: a plain script tag, the same URL base64-encoded and decoded with atob() so that searching for the domain finds nothing, and a full inline copy of the payload run through eval in case the domain was blocked.

He fetched 1,611 distinct Optimizely snippets and found 188 infected, across those 178 organisations. He says the real number is likely higher. The first injection he could date was at 04:21 UTC. Clean-up happened between roughly 20:40 and 21:10 UTC, and at 21:52 UTC one infected snippet was left. Smartsheet's snippet was cleaned and then re-infected with the base64 variant, which he reads as the attacker still having access at that point.

What the payload did

It started as a crypto clipper. The script looked for wallet addresses on the page, in form fields, in the clipboard and in outgoing requests, and swapped in the attacker's. Helme counted about $7,040 received by the attacker's wallets in roughly nine hours.

At 13:43 UTC a card skimmer was added. It watched forms and outgoing POST requests for a card number, expiry and CVV and sent them to the attacker's server. This is the detail I'd underline for anyone selling online: cards typed into hosted payment iframes from providers like Stripe or Adyen were out of reach, according to the post. Cards typed into fields on the site's own page were not.

It also sent non-HttpOnly cookies and a screenshot of the page when it swapped an address near payment text, and on iPhones it tried to load known iOS exploit kits. Helme says he can't see how many cards or cookies were captured.

The inventory I'd do first

A script you load from someone else's domain has the same access to your page as code you wrote. If I hadn't listed mine recently, I'd start there, and it takes about half an hour on a small site.

Build the site and search the output for script tags:

grep -rhoE '<script[^>]+src="https?://[^"]+"' dist/ | sort | uniq -c | sort -rn

Then open the live site with DevTools on the Network tab, filter by JS, and sort by domain. The second pass matters because tag managers and chat widgets load more scripts at run time than your HTML shows.

For each domain I'd write down what it's for and whether I'd miss it. Old A/B testing snippets, a heatmap trial from two years ago and a chat widget nobody answers are the usual finds. Removing a script is the only fix that fully works.

The policy I'd add

Subresource Integrity doesn't help with scripts like this one. It pins a file to a hash, and an A/B testing snippet is meant to change whenever you edit an experiment.

A Content-Security-Policy does help, because it limits what a hijacked script can do next. I'd start in report-only mode so nothing breaks. This is my example, not one from Helme's post, and the vendor domains are placeholders:

Content-Security-Policy-Report-Only: default-src 'self'; script-src 'self' https://cdn.vendor.example; connect-src 'self' https://api.vendor.example; frame-src https://js.stripe.com; report-uri https://example.com/csp-reports

Three parts of that line map onto this attack. A script-src allowlist would not have stopped the modified Optimizely file, since it came from an allowed domain, but it stops that file from pulling a second script from a domain you never listed. Leaving out 'unsafe-eval' blocks the inline eval fallback. And connect-src covers fetch, XHR and sendBeacon, so stolen data has nowhere to go even if the payload runs. Helme makes the same general point, that a policy in enforcement mode could have blocked key parts of this.

Once the reports are quiet for a week, I'd switch the header name to Content-Security-Policy.

Two smaller changes cost almost nothing. Set session cookies HttpOnly so page scripts can't read them. And if you take cards, use the provider's hosted fields or hosted checkout page, so the card number never sits in your DOM.

Where this advice runs out

A CSP does nothing about the address swapping itself. If a vendor script is allowed to run, it can rewrite text on your page without loading anything else. Blocking the second-stage download would have stopped this particular campaign's main variant, and the inline fallback only where eval was blocked.

Tag managers also make a tight policy hard. If marketing tools inject scripts from domains that change, you end up widening the allowlist until it means little. That's a real cost, and on a site with a tag manager I'd expect the report-only phase to take longer than a week.

I also only read part of Helme's post directly. It's long, and it includes a breakdown of how affected sites' policies fared that I'm not quoting because I couldn't check the figures myself.

What I'd actually do

Today: run the grep, delete every script I can't name a use for, and check whether my checkout uses hosted fields. This week: ship the report-only header and read what comes back. After that: enforce it.

If you're an Optimizely customer, Helme's post lists the indicators. Search your Project JavaScript and experiment code for 1688360.cc and for atob(, and read his post in full before deciding what to tell your own customers.

Author

Sources

Newsletter

The week, in one email.

The weekly summary of what happened and what it means for people who build alone. No spam, unsubscribe any time.

Form not showing? Subscribe on this page instead.

Related Posts