The Optimizely Attack: How One Third-Party Script Put Malware on 178 Brand Websites, and How to Protect Yours
Zoom, CNN, IKEA, the BBC and GitLab were among 178 organizations whose websites served malicious code in November 2026, without their own servers being hacked. The cause was a third-party script. Here is how it happened and how to protect your website.
Most websites are not built only from their own code. A typical business site loads scripts from analytics tools, A/B testing services, chat widgets, advertising networks and payment providers, each delivered straight from the vendor. In November 2026, that habit was turned against some of the world’s best-known brands.
At ISOM, we build and maintain websites and online stores, and third-party scripts are part of nearly every project. This article explains the Optimizely attack and gives a practical checklist for any website owner.
What happened
Reports from Socket, SecureWorld and InfoQ describe the incident:
- Date: 16 November 2026.
- Product: Optimizely Web Experimentation, an A/B testing service that websites load as a JavaScript snippet. InfoQ reported that Optimizely’s other experimentation products were not affected.
- Entry point: a vulnerability in Optimizely’s account signup flow, which attackers used to edit customers’ Project JavaScript.
- Discovery: security researcher Scott Helme of Report URI examined 1,611 Optimizely scripts and found malicious code in 188, linked to 178 organizations. He said the real number may be higher.
- Brands reported affected: Zoom, CNN, the BBC, GitLab and IKEA, with HSBC, Salesforce and Equifax also named in some reports.
- Payloads: a cryptocurrency clipper that replaced wallet addresses, a card skimmer for checkout forms added mid-campaign, session data theft and exploit chains aimed at iPhones.
- Response: Optimizely said it fixed the vulnerability, removed the injected code, revoked tokens, ended sessions and notified customers. The malicious code was removed the same day, though reported timings differ.
Why the brands’ own security did not stop it
None of these organizations needed to be hacked themselves. The malicious code came from Optimizely’s own content delivery network, with a valid certificate, the same address their websites were told to trust. Allowing a vendor’s domain is not the same as controlling what that vendor sends.
SecureWorld reported Report URI’s finding that, among the affected organizations, only 24 had a strict Content Security Policy, 68 had none and 50 had a permissive one. A strict policy would not have stopped every payload, but it limits where stolen data can be sent.
The website owner’s checklist
1. List every third-party script
You cannot protect what you have not listed. Record every external script on your site, which pages load it, who owns the relationship and why it is there. Most sites find scripts nobody remembers adding.
2. Remove what you do not need
Old testing tools, abandoned chat widgets and duplicate analytics tags are pure risk. Every script you remove is one less vendor that can be used against you. It also makes your site faster, which matters on mobile networks; see our guide to high-performance web development for mobile networks.
3. Keep third-party code off checkout and login pages
Payment, login and account pages should load as little outside code as possible. Card skimmers only work where card details are typed.
4. Set a strict Content Security Policy
A Content Security Policy tells browsers which sources may run scripts (script-src) and where pages may send data (connect-src). Tight connect-src rules make it much harder for a skimmer to send stolen data to an attacker’s server.
5. Use Subresource Integrity where you can
Subresource Integrity lets a browser refuse a script that has changed from the version you approved. It does not suit scripts that change constantly, such as testing snippets, which is another reason to keep those off sensitive pages.
6. Monitor for script changes
Use monitoring that alerts you when the scripts on your pages change, or when your Content Security Policy reports a violation. An alert in minutes is far better than finding out from customers.
7. Protect sessions and admin accounts
Mark session cookies as HttpOnly and Secure so scripts cannot read them, and protect vendor dashboards, including your own testing and analytics accounts, with multi-factor authentication.
8. If you use Optimizely, review the change logs
Researchers advised affected customers to review Project JavaScript change logs for the window around 16 November and to search their logs for the attacker domains published by researchers.
Not just big brands
Smaller businesses use the same tools: Google Tag Manager, Facebook pixels, chat widgets, plugin scripts in WordPress and payment buttons. In East Africa, where online stores increasingly take mobile money and card payments (see mobile money checkout and trust), a compromised script on a checkout page can do serious damage to customer trust. Our guide to securing WordPress and headless CMS platforms covers the plugin side of the same problem.
How ISOM can help
ISOM is a business technology company based in Mogadishu that designs, builds and maintains websites, online stores and portals. For third-party script risk, we can:
- Audit every script your website loads and remove what you do not need.
- Set up a strict Content Security Policy and integrity checks without breaking your analytics or payments.
- Rebuild checkout and login pages to load minimal outside code, through Web & Commerce.
- Monitor your pages for unexpected script changes and policy violations, through Cloud & Managed Technology.
Not sure what runs on your website? Message ISOM and we will start with a script review.
This article reflects public reporting up to December 2026. Details of the attack’s timing and payloads differ between sources.
Frequently asked questions
What happened in the Optimizely attack?
On 16 November 2026, attackers abused a vulnerability in the account signup flow of Optimizely Web Experimentation, an A/B testing service, and edited the JavaScript that customers' websites load. Researcher Scott Helme of Report URI examined 1,611 Optimizely scripts and found malicious code in 188 of them, linked to 178 organizations.
Which websites were affected by the Optimizely attack?
Reported affected brands include Zoom, CNN, the BBC, GitLab and IKEA, with other outlets also listing HSBC, Salesforce and Equifax. Report URI said the true number may be higher than 178.
What did the malicious code do?
Reports describe a cryptocurrency clipper that swapped wallet addresses, a card skimmer targeting checkout forms that was added during the campaign, theft of session data, and exploit chains aimed at iPhones.
How can a website be infected without being hacked?
Many websites load scripts directly from vendors for analytics, testing, chat and advertising. If a vendor is compromised, the malicious script is delivered from the vendor's own trusted address with a valid certificate, so it runs on every website that loads it.
How can ISOM help protect my website from third-party script attacks?
ISOM audits the scripts your website loads, removes what is not needed, sets a strict Content Security Policy, keeps third-party code off checkout and login pages and sets up monitoring for script changes. Message ISOM to review your site.