Hackers Inject Malicious Code Into Websites of 178 Organizations Through Optimizely Breach

A security flaw in Optimizely's Web Experimentation platform let hackers inject malicious JavaScript into scripts tied to 178 organizations, including the BBC, CNN, Zoom and Salesforce. The code stole payment-card data, manipulated cryptocurrency transactions and targeted older Apple devices. Optimizely has fixed the flaw and removed the code, but the incident highlights growing risks from third-party website services.

· 7 min read · 132 readers
Hackers Inject Malicious Code Into Websites of 178 Organizations Through Optimizely Breach

Some of the world's most recognizable websites became part of a cybersecurity incident after attackers exploited a vulnerability in Optimizely, a platform used by businesses to test and personalize their websites.

The attack allowed an unauthorized party to insert malicious JavaScript into customer projects. The altered scripts were then delivered to visitors through websites belonging to organizations including the BBC, CNN, Zoom, Salesforce, HSBC, Equifax and IKEA.

Security researcher Scott Helme identified 188 compromised Optimizely scripts associated with 178 organizations. The malicious code was designed to steal payment-card information, interfere with cryptocurrency transactions and deliver additional malicious software targeting certain Apple devices.

The incident demonstrates how a security weakness in one trusted technology provider can expose visitors across numerous unrelated websites.

How the Attack Happened

Optimizely provides website experimentation and personalization services. Businesses use its Web Experimentation platform to test different website layouts, measure visitor behaviour and improve digital experiences.

To make this possible, customers add a JavaScript snippet to their websites. The snippet loads from Optimizely's infrastructure and executes in visitors' browsers.

Attackers found a vulnerability in the platform's account signup process that allowed them to impersonate users with administrator-level access to customer projects. They then modified a section called Project JavaScript, which allows customers to add custom code to their websites.

Rather than compromising each organization's website infrastructure separately, the attackers used Optimizely's existing delivery mechanism to distribute their malicious code.

This made the incident particularly concerning. The modified scripts continued to be served through a domain that affected websites already trusted.

According to Optimizely's November 17 incident report, the first malicious code was written into a customer project at 07:51 UTC on November 16. The company detected suspicious activity at 13:34 UTC, addressed the vulnerability at 16:10 UTC and completed the removal of malicious code from affected projects by 22:24 UTC.

Optimizely said the incident did not involve stolen customer passwords or a compromised administrator account.

What the Malicious Code Was Designed to Do

The injected JavaScript loaded additional code from attacker-controlled infrastructure. Researchers identified several malicious capabilities.

Payment-card theft

The malware attempted to capture payment-card information entered directly into forms on affected websites. This included card numbers, expiration details and security codes.

However, Optimizely's investigation found that payment details entered through separately hosted payment iframes, such as those provided by Stripe and Adyen, were outside the script's reach.

Cryptocurrency payment manipulation

The malicious code monitored cryptocurrency-related activity and attempted to replace legitimate wallet addresses with addresses controlled by the attackers.

This type of attack can be particularly difficult for users to notice. Someone may copy what appears to be a legitimate payment address, only for the malicious script to substitute a different destination before the transaction is completed.

Browser information collection

Researchers also identified functionality designed to collect browser cookies, website URLs and screenshots under certain conditions.

Optimizely's own analysis said this information was transmitted on pages where the script had replaced a cryptocurrency wallet address. Its investigation found no evidence that the recovered version collected other form fields or accessed session and local storage.

Attempts to target Apple devices

The campaign also included a separate malicious stage targeting iPhones and iPads running older versions of iOS and iPadOS.

Researchers identified connections to the Coruna and DarkSword exploit kits. These tools were associated with attempts to exploit vulnerabilities in devices running versions up to iOS 18.6.

Apple told Reuters that the underlying vulnerabilities had been fixed the previous year and that users running updated software would have been protected.

The presence of exploit-delivery code does not establish that every device that visited an affected website was successfully compromised.

Major Organizations Among Those Affected

The list of organizations associated with the compromised scripts included companies across financial services, technology, media, retail and other industries.

Some of the prominent names identified by researchers included:

  1. BBC
  2. CNN
  3. Zoom
  4. Salesforce
  5. HSBC
  6. Equifax
  7. IKEA
  8. GitLab
  9. Air France-KLM
  10. Ledger

However, the presence of a company's website on the list does not automatically mean its internal systems were breached or that customer information was stolen.

The attack primarily involved malicious code being delivered to visitors' browsers through affected website scripts.

Several organizations responded by investigating their exposure and disabling Optimizely scripts as a precaution.

Salesforce said it was investigating unauthorized modifications and had disabled the relevant scripts across preview and production environments. Zoom also disabled Optimizely across production environments while reviewing the incident.

Equifax said it had not identified evidence of compromise to its systems, while HSBC stated that unauthorized scripts were not active on its websites.

Reuters reported that it could not independently establish the full extent of successful exploitation or how many visitors were affected.

Optimizely Responds and Fixes the Vulnerability

Optimizely confirmed the security incident and said it had closed the vulnerable signup pathway, removed injected code from affected projects and taken steps to secure affected accounts.

The company also terminated active sessions, revoked tokens and introduced additional protections to prevent unauthorized code from being delivered.

In its November 17 report, Optimizely confirmed that the incident was limited to its Web Experimentation product. It said there was no indication that Feature Experimentation, its software development kits or its legacy Full Stack product had been affected.

The company also engaged Mandiant to conduct an independent forensic investigation.

Optimizely stated that no malicious code remained in its systems after remediation. However, the forensic investigation was still ongoing when its initial customer report was published.

What Businesses Should Learn From the Incident

The Optimizely incident is a reminder that securing a website involves more than protecting its own servers, databases and applications.

Modern websites often depend on external scripts, analytics platforms, advertising services, customer-support tools and payment integrations. These services can have extensive access to website visitors through code that executes directly in their browsers.

When one of these trusted dependencies is compromised, attackers may be able to reach visitors without first breaking into the website owner's infrastructure.

Businesses should take several precautions.

Review third-party scripts: Maintain an inventory of external JavaScript dependencies and regularly assess whether each service is necessary and trustworthy.

Implement a strong Content Security Policy: A properly configured Content Security Policy (CSP) can restrict which external sources are allowed to execute scripts or receive browser data. Optimizely confirmed that a strong policy would have blocked the injected external code.

Protect sensitive pages: Avoid loading unnecessary third-party scripts on pages that collect payment information, handle authentication or process cryptocurrency transactions.

Monitor changes to website code: Use monitoring tools to identify unexpected modifications to scripts, unusual external connections and suspicious changes to website behaviour.

Review payment activity: Organizations that used affected Optimizely projects should investigate payment and cryptocurrency activity during their individual exposure windows.

Maintain visibility into vendors: Third-party technology providers should be included in an organization's cybersecurity risk assessments, incident response planning and ongoing security reviews.

Optimizely specifically advised customers to review their website activity during the exposure window of November 16, 2026, between 07:51 and 22:24 UTC, while noting that individual customer exposure periods could vary.

A Warning About the Security of Trusted Websites

The most important lesson from this incident is that a website does not need to be directly hacked for its visitors to face a security risk.

Organizations can invest heavily in securing their own infrastructure and still expose users through a vulnerable third-party service. This is why supply-chain security and browser-side protection have become important parts of modern cybersecurity.

As businesses continue to rely on external platforms to deliver website functionality, they must pay closer attention to the code running on their pages and the level of access granted to technology providers.

The Optimizely incident shows how a single vulnerability in a widely used service can create exposure across dozens of industries and hundreds of websites.

For businesses, the question is no longer only whether their own systems are secure. It is also whether every external service they trust is equally prepared to protect their customers.

Enjoyed this analysis? Share with peers:

Discussion (0)

Technical commentary

Leave a Reply

No comments yet. Be the first to share your thoughts!

Related in Cyber Security

View all →