On November 17, 2026, attackers exploited a vulnerability in Optimizely, a widely used A/B testing platform, to inject malicious JavaScript into websites belonging to 178 organizations, including BBC, CNN, and Salesforce.
The important part of this incident was that instead of hacking these websites directly, attackers compromised a trusted third-party service, turning legitimate websites into potential channels for malware distribution and data theft.
What Happened?
Attackers injected malicious JavaScript into Optimizely-managed resources, enabling:
- Cryptocurrency wallet address manipulation,
- Payment card data theft attempts,
- Exploitation attempts against vulnerable iOS devices.
How Did It Happen?
By exploiting weaknesses in Optimizely's account creation and access controls, attackers modified JavaScript delivered through trusted infrastructure.
The affected websites did not need to be directly compromised. Their browsers simply loaded the malicious third-party scripts.
What Could Have Prevented or Mitigated It?
- Stronger authentication and authorization controls,
- Content Security Policy (CSP),
- Third-party JavaScript integrity monitoring,
- Secure Web Gateway (SWG) and Browser Isolation,
- Continuous vendor security assessments.
Lessons Learnt
- Trusted domains do not always mean trusted content,
- Third-party JavaScript is part of your attack surface,
- Domain allowlisting alone is not enough,
- Supply chain security requires continuous monitoring and defense in depth.
The key takeaway: Your website may be secure, but what about the third-party code running inside it?




