safe mode

The Malware Came From a Trusted Script

For 17 hours, some of the most visited websites in the world served malware to their own visitors — card skimmers, wallet thieves, phone exploits. None of those sites had been hacked. The script they all trusted had been.

What happened

On November 16, 2026, Scott Helme, the founder of the security reporting service Report URI, disclosed what he had found in the traffic: attackers had injected malicious JavaScript into Optimizely's Web Experimentation script, and it was being served to visitors from Optimizely's own content-delivery network. The injection ran from about 04:21 to 21:52 UTC — roughly seventeen hours.

The script is a small snippet that hundreds of companies paste into their pages to run A/B tests and personalize content. Helme counted 188 snippets across 178 organizations serving the malicious version, including the BBC, CNN, Zoom, HSBC, Salesforce, GitLab, IKEA, Equifax, and Air France-KLM; banks and financial firms were the largest single group. The injected kit swapped cryptocurrency wallet addresses in visitors' clipboards, skimmed card numbers typed into the sites' own payment forms, stole cookies and screenshots, and served exploit kits to iPhones and iPads running older software.

Optimizely confirmed on November 17 that an unauthorized party had exploited a vulnerability in its Experimentation product — reported to be in the account signup flow — and said it had fixed the flaw and removed the injected code. One statistic from Helme's analysis deserves to be read twice: of the 178 affected organizations, only about 24 — fifteen percent — had a content security policy strict enough to have blocked the attack. The other eighty-five percent had handed a third-party script unlimited trust on their most sensitive pages, including the pages where customers type card numbers.

The lesson

Every modern website is assembled from other people's code: analytics, chat widgets, A/B testing, advertising, payment helpers. Each snippet you paste in runs with the full trust of your own page — it can read what your visitors type and send it anywhere. That makes your script inventory a security inventory, whether you treat it as one or not.

The victims in this story did nothing wrong that week. Their code was unchanged, their servers unpatched in no way that mattered, their passwords unstolen. The compromise arrived through a supplier, inside a file they had invited onto their pages months or years earlier and then forgotten. The only organizations protected were the ones that had limited, in advance, what a script on their pages was allowed to do and where it was allowed to send data — a setting most sites never configure, because nothing bad has happened yet.

That is the uncomfortable arithmetic of supply-chain attacks: your security is now partly the security of every vendor whose code runs on your site, and the only part of that you control is how much trust each piece gets.

What a business owner can do

  1. Inventory every third-party script on your site. List what runs on each page — analytics, chat, testing, ads — and remove anything nobody can explain. The list matters most on payment and login pages.
  2. Keep card data out of your page's reach. Use your payment provider's hosted fields or iframe, so card numbers are typed into the provider's frame, never into a page where your other scripts can read them.
  3. Set a content security policy, and monitor it. A CSP tells the browser which scripts may run and where they may send data. Only about fifteen percent of the sites in this attack had one strict enough to help. Reporting mode shows you violations before you enforce.
  4. Watch what your site actually serves. Your pages can change without you changing them — a vendor update, a hijacked account, a swapped file. Scheduled checks of your public face catch changes you did not make.
  5. Ask vendors the Optimizely question. Before pasting in a snippet, ask how the provider secures its own delivery, and how you would find out if its script changed. Their answer is part of your security now.

None of the 178 organizations in this story made a mistake on November 16. Their mistake, if it was one, was made quietly and long before: total trust, granted once and never revisited, to code they did not write. A business that inventories the scripts on its own pages, limits what each is allowed to do, and watches what its site actually serves gives a hijacked supplier a much smaller stage — and perhaps malware riding a trusted script could have been refused at the door of its checkout page, or spotted in its own storefront within the hour instead of the next day. That is the whole idea behind working with ImpacterShield: find the weak spots while they are still just maintenance.

ImpacterShield checks a business website on a schedule, alerts when protection slips, and verifies each fix. The first scan is free at impactershield.com.

← All stories