
A Third-Party Script Is Your Production Code: Breaking Down the Optimizely Attack and How to Defend Your Frontend
On November 16, 2026, visitors to 178 major websites (including Zoom, BBC, CNN, GitLab, and Salesforce) received malicious JavaScript through the legitimate CDN of the A/B testing platform Optimizely. None of those sites were hacked directly. The malware landed in the Project JavaScript field and spent 19 hours stealing payment cards, cookies, and crypto transfers while targeting older iOS devices.
Here is the full timeline of the attack, why SRI fails here, and how strict-dynamic and unsafe-eval create hidden traps. You also get working Express, CSP, and Nginx configs plus a PCI DSS monitoring plan.
















