decrypted · 25 november 2026 · supply chain · ai and llm security · digital sovereignty

Optimizely's hijacked scripts: when a supplier can write to your website

On 16 November, an attacker put their own code on the websites of some of the best-known brands in the world. The route was Optimizely, a vendor whose Web Experimentation tool lets marketing teams test page variations. Researchers at Report URI counted 178 organisations served malicious JavaScript, and their list included UK names such as the BBC, TalkTalk and Admiral. The incident is nine days old but new to this column, and later findings, including a far larger count from Zscaler, matter to any board that lets a supplier's script run on its pages.

How the hijack worked

Optimizely says an unauthorised party exploited a flaw in the sign-up flow of Web Experimentation and used it to add malicious code to some customer projects. Once inside, the attacker edited a field called Project JavaScript, which holds code that runs on every page load. The vendor's main snippet was left alone and still arrived from Optimizely's own servers with its own certificate.

Think of a hotel that lets a trusted caterer into the kitchen. The caterer's badge is genuine, so nobody inspects the tray.

Security Affairs, summarising Report URI, says the payloads swapped cryptocurrency wallet addresses, skimmed card details, stole cookies and, on iPhones, tried to deliver exploit kits. Nobody has reported a real iPhone being taken over. Report URI saw the first injection at 04:21 UTC, in the BBC's snippet. Clean-up began around 20:40 UTC, and by 21:52 only TalkTalk's snippet was still infected.

What the defender saw

Allowing Optimizely's domain in a policy was no help, because the code came from it. Report URI checked the content security policy, or CSP, the browser rule listing what a page may load and run, on 256 hosts. Sixty-eight had none, and only 24, or 15%, blocked the payload. Optimizely's own documentation recommends allowing "unsafe-eval", a setting that lets pages run text as code.

The numbers disagree. Report URI found 178 organisations. Zscaler, on 18 November, reported more than 450 unique domains and more than 3,000 URLs. Optimizely says fewer than 5% of its customers were affected. It has not said how a sign-up flaw gave write access to unrelated customer projects.

The Secure by Design lesson

Three decisions would have limited it. First, the vendor: creating an account and publishing code to millions of visitors are different powers, and the second should need its own approval. Second, the customer: run a CSP in enforcement mode, not report-only mode, and refuse "unsafe-eval" unless you can defend it. Third, inventory every outside script and who can edit it. A CSP takes weeks of testing, not a budget line.

For UK directors the point is control. A script on your page is your code in your customers' browsers, and they will not tell yours from your supplier's. Ask your web team which outside scripts can change what visitors run, and who at the supplier can change them. Opinion, not advice.

Also this week

An AI-driven attack on the European Commission. The Commission confirmed on 19 November that it first detected signs of a campaign on 22 October, and its spokesperson called it an "AI-generated cyber campaign". Personnel systems, including payroll, were disrupted for more than 10 days. The Record, citing Politico, says CERT-EU identified use of Artex, an open-source AI hacking platform, though the Commission did not name the tool. The FBI had warned that some Artex intrusions went from targeting to privileged access in under three hours. No attacker has been named, and the Commission says it found no evidence of a broad staff data breach. This is its third disclosed incident this year, after Ivanti software in January and cloud infrastructure in March, and officials have not linked them. Asked why it waited, the spokesperson said publicising defensive measures could undermine them. The lesson is about speed: if attackers move in hours, patching and segmentation must be measured in hours too.

EU cloud rules and UK suppliers. ITPro reported on 10 November that techUK estimates the EU's proposed Cloud and AI Development Act, or CADA, could cost the UK economy between £19.6bn and £22.3bn over five years. The draft sets four assurance levels for providers selling to EU public bodies. Levels 3 and 4 require EU-based staff and data kept in the region, and exclude providers under third-country control. The Commission estimates only about 10% of public procurement falls under those levels, and techUK says that underestimates the damage. These are the trade body's estimates, not independent ones. techUK tied the warning to the UK-EU summit in Brussels on 20 November and wants sovereignty judged on technical assurances such as customer-exclusive encryption keys, not on who owns the company. That is the right test for UK buyers too: ask who holds the keys.

Sources

If you would like help working out which outside scripts can change what your visitors run, get in touch.

More like this

Get the next post by email: subscribe to Decrypted. Double opt-in, unsubscribe any time, or take the RSS feed.

Prefer to listen? Decrypted on Apple Podcasts, or paste the podcast feed into any app.

Play here Loads Apple's player when you press it.