JavaScript Supply Chain Attack Hits 178 Major Websites

What Happened: Optimizely Exploited in Major Supply Chain Attack

A significant JavaScript supply chain attack has compromised at least 178 major websites after attackers exploited a vulnerability in Optimizely’s experimentation platform. According to security firm Report URI, the incident on November 16, 2026, saw malicious code injected into high-profile sites including the BBC, CNN, Equifax, Ledger, and Zoom, delivering data-stealing malware to unsuspecting visitors.

The attack highlights the critical risks organisations face when embedding third-party JavaScript without adequate security controls. As Report URI researcher Scott Helme noted in his analysis, “trusted JavaScript doesn’t always remain trustworthy.”

Source: KrebsOnSecurity — Attackers Used Optimizely to A/B Test Malware on Top Websites

How Does This JavaScript Supply Chain Attack Work?

Optimizely provides website customisation and A/B testing capabilities, with its JavaScript snippets typically embedded near the top of web pages to ensure immediate execution. According to Zach Edwards, researcher at Infoblox, this positioning meant the malicious payload fired immediately on page load without requiring any user interaction or consent.

The attackers exploited a vulnerability in Optimizely’s Experimentation platform to inject malicious JavaScript into customer projects. The payload was remarkably sophisticated:

  • Multi-purpose malware kit capable of stealing payment card data, cookies, and screenshots
  • Cryptocurrency address swapping to redirect payments to attacker-controlled wallets
  • Zero-click exploit kits targeting older Apple iOS devices, known as “DarkSword” and “Coruna”
  • The payload was rebuilt 26 times during the attack day, demonstrating active A/B testing of the malware

Why This Attack Was So Effective

The incident was exacerbated by the reality that few popular websites enforce strict rules on third-party content sources. According to the 2025 Web Almanac by HTTP Archive, the median homepage loads at least 22 JavaScript files, creating numerous potential attack vectors.

Edwards explained that Optimizely’s code is designed to execute before consent dialogs appear, meaning this JavaScript supply chain attack required no clicking or user consent to trigger.

Technical Analysis: Content Security Policy Failures

The attack’s success largely stemmed from inadequate Content Security Policy (CSP) implementation across affected sites. CSPs specify which domain names can serve third-party content, potentially blocking malicious injections.

Report URI’s analysis of the 178 affected websites revealed concerning statistics:

  • 68 sites had no CSP at all
  • 50 sites had a CSP that still allowed the malware payload and data theft
  • Only 24 sites (15 percent) had CSPs that fully blocked the malicious payload

Broader analysis from Helme’s site crawler shows CSP deployment across the web’s busiest sites sits at approximately 10 percent, according to daily scans of the top million websites.

Business Impact and Remediation

Optimizely confirmed the incident in a written statement, stating they “identified a security incident in which an unauthorized party exploited a vulnerability in the Optimizely Experimentation to add malicious JavaScript to some customer projects.”

Their remediation efforts included:

  1. Blocking access to the vulnerable path
  2. Deploying a fix and removing injected code from affected projects
  3. Ending active sessions and revoking tokens
  4. Resetting access for affected user accounts
  5. Implementing additional protections in Cloudflare

According to Report URI’s estimates, the attackers managed to steal approximately $7,500 worth of virtual currency from affected users, along with an unknown number of payment card records.

What This Means for Australian Organisations

Note: This section provides general guidance for Australian businesses. The source material does not specifically identify Australian victims.

Australian organisations using third-party JavaScript services should consider the following:

  • Review third-party script usage against the ACSC Essential Eight framework, particularly around application control
  • Organisations experiencing data theft may have obligations under the Notifiable Data Breaches scheme
  • Critical infrastructure operators should assess third-party dependencies as part of their SOCI Act compliance

Actionable Recommendations

To protect against JavaScript supply chain attacks, organisations should implement these security measures:

Implement Strict Content Security Policies

  • Deploy CSPs that explicitly whitelist allowed script sources
  • Avoid overly permissive policies that allow arbitrary domains
  • Regularly audit and update CSP configurations

Enhance Third-Party Risk Management

  • Conduct vulnerability assessments of third-party dependencies
  • Implement Subresource Integrity (SRI) checks for external scripts
  • Monitor third-party vendor security posture continuously

Detection and Response

  • Deploy managed security monitoring to detect anomalous script behaviour
  • Establish incident response procedures for supply chain compromises
  • Maintain asset inventories of all third-party integrations

Frequently Asked Questions

What is a JavaScript supply chain attack?

A JavaScript supply chain attack occurs when attackers compromise a third-party vendor’s platform to inject malicious code that then executes on downstream websites using that vendor’s services. As Helme noted, “A website can be compromised through a third-party dependency without its own code or infrastructure ever being breached.”

How can I protect my website from third-party script compromises?

Implement strict Content Security Policies that specify exactly which domains can serve content on your site. Additionally, use Subresource Integrity checks, minimise third-party dependencies, and monitor for unusual script behaviour. Regular security assessments of your third-party vendors are also essential.

Were any Australian websites affected by the Optimizely attack?

The source material does not specifically identify whether Australian websites were among the 178 affected organisations. Organisations concerned about potential exposure should contact their security team or speak with our security team for assessment.

Key Takeaways

  • 178 major websites served malware through a compromised Optimizely platform
  • The malicious payload was rebuilt 26 times, suggesting active A/B testing by attackers
  • Only 15 percent of affected sites had CSPs capable of blocking the attack
  • Content Security Policies remain critically underdeployed across the web
  • Third-party JavaScript risks require proactive security controls

Conclusion: Addressing JavaScript Supply Chain Attack Risks

This JavaScript supply chain attack demonstrates how a single vendor compromise can cascade across hundreds of websites. Organisations must recognise that trusted third-party code can become a threat vector without warning.

The incident should serve as a catalyst for implementing robust Content Security Policies and comprehensive third-party risk management. As Edwards noted, “We’re in the age of JavaScript supply chain attacks and yet almost no one is talking about why content security policies were invented.”

If your organisation needs assistance evaluating third-party risks or implementing effective security controls, contact the OziTechs security team for expert guidance.

Tagged , , , , .