Skip to content

One script, 178 companies: the Optimizely attack

An attacker slipped code into Optimizely's script and reached visitors of 178 organizations without breaching their servers. What happened, what to check.

On November 16, visitors to sites such as Zoom, the BBC, CNN, HSBC and Salesforce loaded code written by an attacker. Nobody broke into those sites: the code arrived inside the script of Optimizely, a testing tool they all used. It's a supply chain attack, and any site that loads third-party scripts faces the same risk. Public status as of November 17, 2026.

  • What happened: an attacker added malicious code to Optimizely customer projects, and the service delivered it to visitors of their sites.
  • The scope: Report URI counted 188 infected scripts from 178 organizations, and warns there are probably more.
  • What it was after: swapping cryptocurrency addresses, stealing card data and cookies, and attacking unpatched iPhones.
  • The lesson: the third-party code your site loads is your responsibility too.

What the Optimizely script is

Optimizely Web is for testing: showing different versions of a page and measuring which works better. To do that, each site loads a piece of Optimizely code, the snippet. According to its documentation, it should go as high up on the page as possible and load before everything else, because it changes what the visitor sees.

That position is exactly what makes it valuable to an attacker: whatever goes inside the snippet runs with the same permissions as the site itself.

What happened

  • What Optimizely says: on its status page, updated on November 17 at 01:02 UTC, it reports that an unauthorized party exploited a vulnerability in Experimentation and added malicious JavaScript to some customer projects. It says it fixed the flaw, removed the code and secured the affected accounts. The incident is still being monitored, and the page lists no actions for customers.
  • The flaw: according to the statement Optimizely gave BleepingComputer, it was in the Experimentation account signup flow. The company ended sessions, revoked tokens, blocked delivery of the code at Cloudflare and notified affected customers. Salesforce disabled Optimizely scripts and is investigating.
  • How the code got there: according to Report URI, the attacker wrote into each customer's project code field. Optimizely's server delivered that code with its legitimate certificate. It isn't known how a signup flaw allowed writing into unrelated customers' projects.

The scope. Scott Helme of Report URI checked 1,611 Optimizely snippets and found 188 infected, from 178 organizations. By sector, 32 were in banking and finance, 23 in technology and 20 in retail. Optimizely's own sites also loaded the code. The list he published includes no Chilean domain; from Latin America it lists HSBC Mexico and Betsson Argentina. The list is partial, so that doesn't rule out affected sites in Chile.

About 16 hours of exposure

UTC on November 16, according to Report URI unless another source is noted:

TimeWhat happened
04:21First injection seen, in the BBC's script
13:43The code starts stealing card data
17:13 to 17:57Attacks on iPhones are added
20:40 to 21:10Mass cleanup
21:52One infected script remains
23:11All files clean

Over the day, the attacker rebuilt the code 26 times. Smartsheet's script was cleaned and then reinfected, which suggests the attacker still had access. For most sites, exposure lasted about 16 hours, according to StepSecurity.

What the code did

According to Report URI and StepSecurity:

  • Cryptocurrency: it swapped wallet addresses for the attacker's, on the page and when copied.
  • Cards: it captured the number, expiry and security code typed into the site's forms. It couldn't read payment windows hosted by third parties.
  • Cookies and screenshots: it sent the cookies the browser lets scripts read and screenshots of pages with payment or wallet data.
  • iPhones and iPads: it loaded the Coruna and DarkSword exploit kits. StepSecurity notes there's evidence they were delivered, not that any of them worked. According to Google, Coruna targets iOS versions 13 through 17.2.1 and DarkSword targets 18.4 through 18.7. Apple fixed the flaws in iOS 18.7.3 and iOS 26.3.

How much was stolen

The figures don't match:

  • Report URI: about US$7,040 as of November 16 at 19:25 UTC, and about US$7,150 in its November 17 update.
  • BleepingComputer: about US$7,000, warning that some wallets already had activity before the attack.
  • Alex Thorn of Galaxy Digital, quoted by StepSecurity: victims may have sent about US$2,300. StepSecurity couldn't confirm it.

All three agree on one thing: stolen card data and cookies leave no trace in the wallets, so the real damage may be greater.

Not the only wave

According to Hudson Rock, similar code appeared between November 13 and 16 in scripts from three other services: Kissmetrics, StorifyMe and minute-ly. Hudson Rock notes this doesn't prove a single author or a single way in.

Why the protections fell short

Many sites use a content security policy (CSP), which tells the browser which code may run and where it may send data. Report URI checked 256 affected organizations:

SituationOrganizations
No policy68
The policy let both the code and data theft through50
The code ran, but sending data was blocked17
The code was blocked24

Only 24 blocked the code. Report URI puts that at 15%; the four rows add up to 159 of the 256 organizations, and the report does not explain the gap. According to Report URI, two common settings let it through: trusting everything the Optimizely script adds, and allowing "unsafe-eval", an option Report URI says Optimizely's documentation recommends. In HSBC's case, the policy blocked the external file and data theft, but an inline copy of the code ran thanks to that option.

Report URI and StepSecurity sell tools to monitor this kind of script, and Report URI promotes them in its own report.

What to do

If your site uses Optimizely Web:

  1. Review the code in your projects and experiments for scripts you don't recognize.
  2. Change access: users, tokens and connections with other services.
  3. Treat cards entered on your site on November 16 as exposed, and consider notifying your customers.

If your site loads third-party code, even if it isn't Optimizely:

  1. Take an inventory of third-party scripts: analytics, chat, advertising, testing. Each one runs with your site's permissions.
  2. Use a content security policy that limits where data can be sent, avoids "unsafe-eval" and turns on reporting.
  3. Keep payment data off your page: payment windows hosted by the processor weren't affected.

If you visited one of these sites on November 16:

  1. Update your iPhone or iPad to iOS 18.7.3, 26.3 or later.
  2. Review cryptocurrency transfers from that day and compare the full address before sending.
  3. Check your card charges and call your bank if anything looks wrong.

What isn't known

  • How a signup flaw allowed writing into unrelated customers' projects.
  • How much money was actually stolen: figures range from about US$2,300 to about US$7,150.
  • How many cards and cookies were taken.
  • Whether any attack on iPhones worked.
  • Whether the four waves have the same author.
  • Whether any Chilean sites were affected: the published list is partial.

Frequently asked questions

Were the BBC, Zoom or HSBC hacked? Not directly. The code arrived through Optimizely, a vendor those sites loaded. Their servers weren't breached, according to what's been reported.

Is my site affected if I don't use Optimizely? Not by this case. But any third-party script can be the path for a similar attack.

Does a content security policy protect me? It helps if it's well configured. According to Report URI, only 24 of the organizations it checked blocked the code.

Should I replace my card? If you entered it on one of the affected sites on November 16, check your charges and talk to your bank.

Sources

Keep reading

Contact

If you want to know which third-party scripts your site loads and how to limit them, ITLab can help you review it. Contact us.

Do you need someone to take care of your technology?

Tell us what you need to organize, protect or solve. The first conversation has no cost: we assess whether our model fits you and what the next steps would be.

Let's talk about your business