On 16 November 2026, visitors to the public websites of 178 organisations received malicious JavaScript. The organisations had not changed their code, and the attacker did not need access to their servers. The code came through Optimizely’s Web Experimentation platform, a service those sites already loaded to run experiments and personalisation. Report URI, whose research established the scale of the incident, lists well-known names among the affected organisations: Zoom, the BBC, CNN, Salesforce, GitLab, IKEA, HSBC, Equifax, Air France-KLM, Ledger and Peacock.
The technical details matter, but the governance lesson matters more. Each of these organisations had earlier decided to trust a vendor domain. A marketing or digital team usually made that decision, approved it once and rarely reviewed it. On 16 November, that trust was used against the organisations’ own customers. The malicious code did not come from an unknown site. It came from the vendor host the websites were already configured to accept.
This affects every organisation whose public pages load code it does not write, which means almost every organisation. For banks, insurers, energy suppliers, healthcare providers and public bodies, the website is where customers log in, pay, apply and share personal data. Third-party scripts on those pages are not just marketing tools. They are ICT dependencies running inside the organisation’s most exposed channel.
Why a vendor-hosted script matters for security leadership
Most third-party risk programmes focus on suppliers that host data, run infrastructure or connect to internal systems. Scripts loaded in a visitor’s browser often fall outside that scope. They do not appear in the data centre or the cloud account. Procurement often buys them as a subscription on a marketing budget. The security team may only learn about them when a content security policy breaks a campaign.
Yet such a script runs with the same rights as the organisation’s own code in the visitor’s browser. Unless controls prevent it, it can read what the page displays, observe what the user types and send data elsewhere. If the vendor’s platform is compromised, every customer site that loads the script inherits the compromise at the same moment.
Executive takeaway: A third-party script on a public page is a delegated right to run code in front of your customers. The question for leadership is not whether the vendor is reputable. It is who in the organisation owns that delegation, what evidence shows it still behaves as expected, and what happens contractually when it does not.
What the published evidence shows
Report URI describes how the platform works. Each Optimizely Web customer loads a JavaScript “snippet” from Optimizely’s content delivery network. The snippet contains three parts: Optimizely’s own code, the customer’s experiments and an optional field called “Project JavaScript”. That field runs on every page where the snippet loads.
According to Report URI, the attacker wrote their own code into the Project JavaScript of customer projects and left the rest of each snippet untouched. To measure the scale, Report URI fetched 1,611 distinct Optimizely snippets, found mostly through its own crawl data, and checked each one for the malicious code. The figure of 178 affected organisations comes from that work.
This sequence matters for governance. Independent research provided the first public, measurable view of the incident, not the affected organisations’ own monitoring. An organisation that relies on public reporting to learn whether its website served hostile code has outsourced its detection to chance. The first question each affected organisation needed answered was whether its project was modified, when and with what code. That answer must come from its own evidence or from the vendor’s formal confirmation, not from a list published by a third party.
Key point: The affected organisations did not need to make a mistake on 16 November for their visitors to be exposed. Their exposure came from a configuration decision made earlier: allowing a vendor-side field of editable code to run on every page.
How a trusted origin became the delivery channel
The weakness here is structural, not specific to one vendor. Experimentation and tag management platforms let business users change what runs on a website without a code release. That is their value. It also means the code that reaches visitors can change at any time, outside the organisation’s change management process.
In this case, the editable component was the Project JavaScript field. Because it runs on every page, any write access to it reaches the whole site. The attacker did not need to compromise each customer separately. A shared vendor platform gave a single point of entry to many unrelated organisations.
Three assumptions failed at once:
- The origin is the control. Trust was given to a domain, not to specific code. Any code served from that domain inherited the trust.
- The vendor’s content is the customer’s content. Code in a customer project was treated as if the customer had written it, even though the attacker wrote it.
- The script is stable. Many organisations reviewed the vendor once, at onboarding, and did not monitor what the script actually delivered afterwards.
Security implication: Any third-party service with an editable code field that runs on your pages is part of your release pipeline. If you would not let an outside party push to production without review, the same logic applies to a vendor console that can change what your website executes.
Why the usual allow-list did not help
A content security policy (CSP) is the standard browser control for limiting which scripts a page may load and what they may do. Many organisations already have one. Report URI is explicit: allowing cdn.optimizely.com in a policy “was never going to help”, because the malicious code was delivered from that trusted host itself.
This does not make CSP useless. It shows the limit of policies built only as lists of approved hosts. Such a policy answers one question: where may code come from? It does not answer two others: what may that code do, and where may it send data? A policy that also restricts outbound connections, additional script sources and the execution of dynamically generated code reduces what injected code can achieve, even when it arrives from an approved host. Whether a given policy would have contained this payload is an empirical question. Each organisation should answer it for its own pages rather than assume the answer.
Policies are often weakened to accommodate vendor features. Directives such as ‘unsafe-eval’, which allows text strings to be executed as JavaScript, or broad wildcard allow-lists are frequently added because a tool requires them. The business feature and the security control then conflict directly. That conflict is usually resolved by default in favour of the feature, and nobody formally accepts the residual risk.
Decision point: When a vendor feature requires weakening a browser security control, someone with authority must accept that trade-off in writing, with a named owner and a review date. If nobody is willing to sign, the feature should not be enabled on pages that handle authentication, payment or personal data.
Boards often see experimentation, analytics and tag management as marketing infrastructure. Under the European frameworks that apply to regulated organisations, that view does not hold.
DORA requires financial entities to manage ICT third-party risk as part of their ICT risk management framework. They must keep a register of information on all contractual arrangements for ICT services provided by third parties and plan exit strategies for services that support critical or important functions. NIS2 requires essential and important entities to address supply chain security, including the security aspects of relationships with their direct suppliers and service providers. It also makes management bodies responsible for approving and overseeing cybersecurity risk-management measures. A script that runs on the customer login or payment page sits squarely within that scope.
In practice, these services should appear in the same registers, risk assessments and contract reviews as any other ICT provider. In many organisations, they do not. The procurement route, the budget line and the business owner all sit outside the teams that maintain the third-party risk register. The result is a dependency that is critical in practice but invisible on paper.
The incident also exposes a notification gap. When a vendor’s platform is compromised, each customer needs to know quickly whether its own projects were modified, during what window, and what the code did. Those answers drive the customer’s own incident assessment, including whether a regulatory notification is required. If the contract does not specify how and when the vendor must provide that information, the customer depends on the vendor’s goodwill and on public reporting by third parties.
Ownership, evidence and exit: the three gaps to close
The Optimizely case highlights three governance gaps that apply to any third-party script.
Ownership. Someone must be accountable for each script on each public property: why it is there, who can change its configuration and when it was last reviewed. In most organisations, that person is not obvious. Marketing owns the use case, digital teams own the implementation and security owns the policy. No one owns the risk as a whole.
Evidence. A policy that exists is not the same as a policy that blocks. The meaningful test is whether the current configuration would have stopped or contained this kind of payload. Passing that test requires three things:
- knowing what each script is allowed to do;
- knowing which directives are weakened, and why;
- knowing whether anyone would notice if a trusted script suddenly changed.
Integrity monitoring of the code actually delivered to browsers is the evidence that the vendor relationship still behaves as agreed.
Exit and notification. The contract should define what the vendor must tell the customer after a platform compromise, how quickly and in what detail. It should also allow the customer to switch off or remove the script immediately without breaking critical journeys. If removing a script would take down the checkout page, the dependency runs deeper than the business realises.
What security leaders should prioritize
-
Build a complete inventory of third-party scripts. The CISO should commission an inventory of every external script on every public property. It should record each script’s business purpose, vendor, the pages where it runs and any editable fields such as custom code. Discovery should be based on what browsers actually load, not on what teams declare.
-
Name a single accountable owner per script. The executive sponsor of each digital channel should designate an owner who signs off on the script’s presence, its configuration rights and its risk acceptance. Ownership belongs in the third-party risk register, not in a marketing tool.
-
Bring script vendors into the ICT third-party register. The risk and compliance function should classify experimentation, analytics and tag management providers as ICT third parties. It should assess them against DORA or NIS2 obligations where applicable, with the same due diligence as other providers that support critical functions.
-
Test the content security policy against this scenario. Security architecture should check whether the policy as deployed would limit code injected through an approved host: its outbound connections, the extra scripts it loads and any dynamic code execution. Any reliance on ‘unsafe-eval’ or broad allow-lists should be documented, justified and accepted by the script owner.
-
Monitor the integrity of delivered scripts. The security operations team should detect three things on public pages: unexpected changes to trusted scripts, new scripts loading and connections to unfamiliar destinations. Alerts should go to the script owner as well as the SOC.
-
Restrict who can edit vendor-side code. Digital teams should limit access to custom code fields in vendor consoles, require strong authentication and review changes as they would a production release. Features that run code on every page should be disabled where they are not needed.
-
Rewrite notification and exit clauses. Procurement and legal should require vendors to notify affected customers promptly after a platform compromise. The notice should identify the projects, time window and code involved. Contracts should also confirm the customer’s right to suspend the service immediately.
-
Rehearse the removal. The incident response lead should run an exercise in which a key script must be switched off within an hour. Any critical journey that breaks reveals a dependency that needs a fallback.
Building resilience on what already exists
The NCSC’s State of the Cyber Nation report, published on 3 November 2026, warned that “tech on the cheap” has left UK organisations exposed to AI uncovering and exploiting longstanding weaknesses. It described the UK as being at a point of “enormous consequence” for cyber security. It urged organisations to use the tools, standards and frameworks that already exist and are evidenced. The report addresses a broader threat picture, but its advice fits this case closely.
Nothing needed to prevent or contain the Optimizely compromise is new. Content security policies, script inventories, change control, integrity monitoring and contractual notification terms are all established practices. What many affected organisations lacked was not technology. It was a decision that these controls applied to code bought by the marketing department and served from a trusted vendor.
This is the broader lesson for supply chain governance. Shared platforms are attractive targets because one compromise reaches many customers at once. The organisations that suffer least do three things:
- they limit by default what any supplier can do;
- they verify continuously that suppliers still behave as expected;
- they can cut a dependency quickly when trust fails.
“Never trust, always verify” applies as much to a script tag as to a network connection.
Practical takeaway: Treat every third-party script on a public page as an ICT supplier with code execution rights over your customers’ sessions. Before the next review cycle, the executive committee should be able to answer three questions. Who owns each script? What evidence shows that today’s policy would contain a hostile payload from an approved host? And what must the vendor tell you, and how fast, when its platform is compromised?