Skip to content
Olympas

Security ·

The Optimizely Hijack and the Code Your Website Did Not Write

How a flaw at one script vendor put card-skimming code on at least 178 organizations' websites, and what to change on yours.

6 min read · By Olympas

A small bright source on the left feeds thin lines that fan out to clusters of sites on the right, and from the few sites lit by brighter points a faint return stream converges on a single point.

At 04:21 UTC on Monday, 16 November, a script file that a major news site loads from Optimizely, a website testing vendor, was first seen carrying code written by an attacker1. By that evening, security researcher Scott Helme and his team at Report URI had found malicious code in Optimizely files belonging to 178 organizations, including banks, airlines, retailers and news outlets1. BleepingComputer, checking independently, reported that the script loaded or tried to load on sites including Zoom, CNN and the BBC2. Visitors did not have to click anything. Opening a page was enough for the code to run17.

The code was not planted on those organizations' servers. It was written into each customer's project inside Optimizely and, for most sites, served from Optimizely's own delivery network, a domain they already trusted1. Much of what runs in your customers' browsers comes from someone else, and it can change without you touching anything.

What happened

Optimizely Web's script tag loads a "snippet" file from Optimizely that can carry Project JavaScript: custom code the customer writes in its dashboard, which runs on every page1. The attacker added a small loader to that field in many customer projects, leaving the rest of each file untouched1.

Optimizely told BleepingComputer that "an unauthorized party exploited a vulnerability in the Experimentation account signup flow"2. It said it had closed the flaw, removed the injected code, revoked tokens, reset affected accounts and notified affected customers2. As of 19:15 UTC on 17 November, its status page still listed the incident as monitoring4, and the company had not said how a signup flaw reached existing customer projects or how many were changed5.

Helme's team checked 1,611 Optimizely snippets and found the code in 188 of them, belonging to 178 organizations. Helme said the real number is likely higher1. Cleanup was fast: by 21:52 UTC one infected file remained, and by 23:11 UTC all were clean1.

188 of 1,611

Optimizely snippets found carrying the code, across 178 organizations1

What the code did to visitors

The attacker rebuilt the script 26 times that day, by Report URI's count, adding to it as the day went on1. It swapped cryptocurrency wallet addresses for the attacker's, on the page and in the clipboard1. From 13:43 UTC it also captured card numbers, expiry dates and security codes typed into a site's own form fields; cards entered inside a payment processor's hosted frame were out of reach13. When it swapped an address near wallet or payment wording, it also sent the attacker a screenshot and any cookies not marked HttpOnly, a flag that hides a cookie from page scripts1.

On iPhones and iPads it loaded exploit kits aimed at older iOS versions, which is why Helme told that day's visitors to update to iOS 18.7.3 or later, or iOS 26.3 or later1. Hudson Rock, investigating separately, said it had not confirmed a compromise on a real victim's iPhone6.

The money traced is small, and the counts differ: about $7,040 by Helme's tally at 19:25 UTC on 16 November1, or near $6,600 in a StepSecurity count that crypto.news said was not a confirmed theft total7. BleepingComputer noted some wallets were active before the attack2. Helme's team says it cannot see how many cards, cookies or devices the attacker got1.

About 19 hours

from the first tampered file seen (04:21 UTC) to all files clean (23:11 UTC)1

Why a trusted domain was not enough

A website can be compromised through a third-party dependency without its own code or infrastructure ever being breached.
Scott Helme, Report URI, 16 Nov 20261

A script tag tells the browser to fetch whatever code sits at an address and run it, and vendors change that code often, by design8.

Content Security Policy (CSP) is a response header that tells the browser where a page may load scripts from and send data to. It was the control that mattered here, and few sites had it tight enough. Of 159 affected organizations whose policies Helme's team evaluated, 24, about 1 in 7, blocked the payload, and 68 had no policy at all15. Allowing Optimizely's domain did nothing, since the injected code arrived through it1. The sites that held had a short, specific list of allowed script sources, without settings that quietly widen it1.

Subresource Integrity (SRI) puts a fingerprint of the expected file in the script tag, so the browser refuses a changed file. It suits fixed files, not vendor scripts that change often, and it blocks without alerting anyone89.

A report-only CSP blocks nothing but reports anything outside the policy. That is how Report URI, which sells such monitoring, first spotted this attack on a customer's site18.

A bright source on the left fans thin lines out to clusters of sites, and a faint return stream converges on one point.
Fig. 01One file, many sites. When the source changes, every page that loads it changes too.

What PCI DSS already asks of payment pages

As of 17 November 2026, PCI DSS v4.0.1 is the current published standard; the PCI Security Standards Council opened comments on its next iteration in June 202610. Two of its requirements became mandatory on 31 March 202511.

Requirement 6.4.3 says every script that runs in the shopper's browser on a payment page must be approved, checked for integrity, and listed in an inventory with a written business or technical reason9. Requirement 11.6.1 adds detection: something must watch the payment page's security-related HTTP headers and script contents as the browser receives them, and alert staff to unauthorized changes, at least weekly or at an interval set by a targeted risk analysis9. The Council's guidance notes that a malicious change can live between checks, and suggests checking far more often where you can9.

31 March 2025

the date PCI DSS requirements 6.4.3 and 11.6.1 became mandatory11

Merchants who embed a processor's payment form in an iframe and file the short SAQ A questionnaire no longer validate these two line by line. To qualify, they must instead confirm their site resists script attacks, using similar techniques or a confirmation from their PCI DSS compliant payment provider1112.

Our read: this code was live for about 19 hours, so a check at the default weekly interval would most likely have missed it. The hosted payment frame did its job, yet the page around it still ran the address swapper and the cookie theft1. Treat compliance as a floor.

Your vendors' consoles are part of your website

If a tag manager, testing tool or chat widget loads on your checkout page, anyone who can edit custom code in its console can change what runs there.

Our read: account hygiene has a limit. Optimizely says this flaw sat in its own signup flow2, and nothing published as of 17 November suggests a customer's login settings would have stopped it. Browser-side controls belong alongside account controls, and so does a fast way to pull a script: Salesforce told BleepingComputer it had disabled Optimizely scripts across preview and production instances as a precaution while it investigated2.

Olympas's cybersecurity practice treats script inventory and change detection as part of the Identify and Detect functions of NIST CSF 2.0.

What to do now

  • List every third-party script, starting with checkout, login and account pages. Note what each does, who owns it, why it is there and who can change it, including in the vendor's console. Remove the rest89.
  • Turn on change detection this week. A report-only CSP flags new scripts and data destinations without breaking anything. Route reports to someone who will act8.
  • Enforce a tight CSP on payment and login pages. Name specific script hosts, limit where data can go, avoid 'unsafe-eval' where you can, and know that 'strict-dynamic' trusts whatever a trusted script loads. Pin fixed libraries with SRI189.
  • Lock down vendor consoles and keep a kill switch. Require single sign-on and multi-factor authentication, keep publishers few, review API tokens, alert on custom-code changes, and know who can pull a tag in minutes.
  • Keep card entry in your processor's hosted fields. Map payment pages to 6.4.3 and 11.6.1, or to the SAQ A script criterion, with your assessor or acquirer, check more often than weekly, and mark session cookies HttpOnly1912.
  • If you run Optimizely Web, work through Helme's checklist. Check Project JavaScript and experiment code, review who and what has write access, rotate credentials and session tokens kept in non-HttpOnly cookies, treat cards typed into your own forms on 16 November as potentially exposed, ask counsel about telling customers, and watch Optimizely's status page14.

Sources

  1. 01World's Largest Brands Infected With Malware Via OptimizelyReport URI ·
  2. 02Optimizely hack infected CNN, Fox News, BBC, Salesforce sites with malwareBleepingComputer ·
  3. 03Optimizely hack turns world's biggest websites into malware dispensersThe Register ·
  4. 04Web Experimentation Security IncidentOptimizely ·
  5. 05Optimizely Says Attacker Used A Signup Flaw To Inject MalwareSearch Engine Journal ·
  6. 06Malware spread through Optimizely hits 178 organizations, including BBC, CNN and ZoomHelp Net Security ·
  7. 07Optimizely supply chain attack targets crypto wallets across 186 websitescrypto.news ·
  8. 08Reflecting on the Optimizely Incident and Why We Keep FailingScott Helme ·
  9. 09Information Supplement: Payment Page Security and Preventing E-Skimming, Guidance for PCI DSS Requirements 6.4.3 and 11.6.1 (v1.0; announcement with download link)PCI Security Standards Council ·
  10. 10Request for Comments: PCI Data Security Standard (PCI DSS) v4.0.1PCI Security Standards Council ·
  11. 11Important Updates Announced for Merchants Validating to Self-Assessment Questionnaire APCI Security Standards Council ·
  12. 12FAQ Clarifies New SAQ A Eligibility Criteria for E-Commerce MerchantsPCI Security Standards Council ·

Start a project

The notes come from the work. The work starts with a conversation.

Tell us the problem in your own words. If it is close to something we have written about, say so.

A real engineer will read it and reply, usually within one business day.

Olympas LLC · 111 Calvin St, Savoy, IL · From global supply chains to the shop counter