The Optimizely Compromise: When Trusted Websites Deliver Malicious Code

Nov 25, 2026
5 minutes

On November 16, 2026, visitors to legitimate, trusted websites were exposed to code designed to steal sensitive information. The code was delivered through the CDN of Optimizely Web Experimentation, a widely used website optimization service. According to Optimizely, attackers exploited a vulnerability in its service to inject code that targeted payment card information and cryptocurrency transactions on affected websites.

The incident highlights a critical security challenge. Even legitimate websites can expose visitors to malicious code when the third-party services they rely on are compromised. Visitors did not need to navigate to a suspicious website or click a malicious link.

This is precisely the kind of threat Prisma Browser's Advanced Web Protection is designed to address. By analyzing content and scripts delivered to the browser, rather than relying solely on source reputation, Prisma Browser can identify and block malicious activity even when it originates from trusted infrastructure.

And Optimizely is far from an isolated example. Palo Alto Networks Unit 42 researchers have uncovered similar attacks exploiting trusted websites and services, while Advanced Web Protection has already detected and blocked related threats in real-world environments.

What Happened in the Optimizely Attack?

Optimizely Web Experimentation enables organizations to optimize their websites by loading JavaScript from cdn.optimizely.com. Its scripts are routinely loaded and executed by websites using the service.

According to Optimizely's incident report, attackers exploited a vulnerability in its account signup process to impersonate users on targeted customer accounts and inject malicious JavaScript delivered to visitors of affected websites.

The injected script targeted two types of activity:

  • Payment card information: Card details entered directly into forms on affected pages.
  • Cryptocurrency transactions: Cryptocurrency transfer activity occurring on affected pages.

Optimizely reported detecting the activity the same day, closing the vulnerability within hours, and removing the injected code.

The incident demonstrates how third-party services can become a delivery mechanism for attacks, even when the websites using them have not been directly compromised.

The Security Blind Spot: When Trusted Sources Deliver Malicious Content

Traditional web security often uses URL categorization, domain reputation, and other indicators to determine whether a destination is trustworthy. These remain important layers of protection, but they are not sufficient on their own.

In the Optimizely attack, malicious JavaScript was delivered through a legitimate CDN to visitors of trusted websites. What had changed was the content being delivered.

This creates a challenge for security controls that rely heavily on reputation or lack visibility into scripts executing inside the browser. Even network security solutions that inspect web traffic may have limited visibility into dynamically assembled content or activity occurring after a page loads.

To address this risk, organizations need security that goes beyond determining whether a website is trusted. They need to evaluate the content and behavior delivered to the browser.

Optimizely Isn't an Isolated Incident: Unit 42 Has Uncovered Similar Threats

Unit 42 researchers have documented other attacks in which legitimate websites and services were used to deliver malicious content.

In May 2026, Unit 42 reported a campaign involving obfuscated WebSocket backdoors that injected credit card skimmers into hundreds of compromised websites. Like Optimizely, the attack targeted sensitive payment information from visitors to legitimate websites.

In another campaign, attackers compromised more than 350 websites running on a leading content management platform and used jsDelivr, a widely trusted open-source CDN, to stage malicious payloads. The campaign employed ClickFix techniques to manipulate users into executing malicious commands.

While these campaigns differ in technique and objective, they demonstrate the same security challenge. Legitimate websites and services can become vehicles for delivering malicious content.

Prisma Browser's Advanced Web Protection Changes the Equation

Prisma Browser addresses this challenge by extending threat protection into the browser, where web content is processed and executed.

Advanced Web Protection analyzes page content, scripts, and their components in real time, helping detect malicious activity regardless of whether it originates from an unfamiliar website, a compromised legitimate site, or a trusted third-party service.

This provides three important security advantages:

  • Protection based on content, not just reputation: Advanced Web Protection evaluates scripts and content rather than relying solely on domain reputation. A malicious script delivered through a trusted CDN can be evaluated for the same threats as one originating from an unknown domain, helping detect attacks delivered through legitimate websites.
  • Visibility into threats that emerge inside the browser: Some attacks involve scripts dynamically loaded, assembled, or executed after a page loads. By analyzing content within the browser, Advanced Web Protection can identify malicious components and behaviors that may not be apparent from network-level indicators alone.
  • Proven protection against related attacks in production environments: As detailed in our recent PHP2Shell blog, Advanced Web Protection has detected and blocked malicious activity on legitimate, compromised websites, including credit card skimmers, malicious script injections, and ClickFix attacks.

Protecting Users Beyond the Websites You Control

Organizations using Optimizely Web Experimentation should verify whether their websites were affected and assess potential exposure during the incident window.

But securing an organization's own websites is only part of the challenge. Employees access thousands of websites and applications their organizations do not control, any of which could become compromised.

The Optimizely compromise is a reminder that the next web threat may not come from a suspicious website. It may come from one your employees already trust.

Learn more about Prisma Browser Advanced Web Protection. Schedule a demo.


Subscribe to Sase Blogs!

Sign up to receive must-read articles, Playbooks of the Week, new feature announcements, and more.