+971 58 661 3940 info@tascoit.com Offices in USA · UAE · Pakistan
TASCO IT SOLUTIONSTechnology · Innovation · Growth

Optimizely Hack: How to Secure Third-Party Scripts

The Optimizely hack put card skimmers and crypto stealers on 178 brands' websites. See what happened and how to lock down third-party scripts.

Cybersecurity · · 5 min read · By TASCO IT Solutions
Optimizely hack: website code on a laptop screen, third-party script security

On a normal Monday in November, visitors to sites run by Zoom, the BBC, CNN, HSBC and IKEA were served malicious code, and none of those companies wrote it. The Optimizely hack, which researchers have nicknamed OptimJack, is one of the clearest warnings yet that the scripts you borrow from vendors can turn against your customers. If your website loads analytics, A/B testing, chat or marketing tags, this story is about you.

Below we explain what happened, why it matters for businesses in the USA, the UAE and Pakistan, and the practical steps to tighten third-party script security this week.

What happened in the Optimizely hack

Optimizely Web Experimentation is a popular A/B testing tool. Sites add a small snippet, loaded from Optimizely’s CDN, and it can run custom code through a feature called Project JavaScript on every page.

On 16 November 2026, security firm Report URI found that attackers had written malicious code into the Project JavaScript of customer projects. The rest of the snippet was left alone, and the file was still delivered from Optimizely’s own trusted domain, so browsers and security tools had no reason to block it.

  • Scale: Report URI checked 1,611 Optimizely snippets and found 188 infected, belonging to 178 organisations.
  • Named brands: Zoom, BBC, CNN, Salesforce, GitLab, IKEA, HSBC, Equifax, Air France-KLM, Ledger and Peacock, among others.
  • Cleanup: most snippets were cleaned on the evening of 16 November (UTC).
  • Vendor response: in a status notice early on 17 November, Optimizely said an unauthorised party had exploited a vulnerability in Experimentation to add malicious JavaScript to some customer projects, and that it had fixed the flaw and removed the injected code. It also said it had ended sessions, revoked tokens and reset access for affected accounts.

What the malicious code did

According to the published analysis, the injected scripts carried several payloads:

  • Crypto address swapping: wallet addresses on the page and in the clipboard were replaced with attacker addresses for Bitcoin, Ethereum, Solana and other coins.
  • A card skimmer: added later the same day, it read card details typed into a site’s own payment form fields. Hosted payment fields in separate iframes, such as those from Stripe or Adyen, were not readable.
  • Cookie and screenshot collection: some browser cookies, the page URL and a screenshot were sent to the attacker.
  • iPhone exploit kits: older iOS versions were targeted with known exploit kits. Researchers have not reported a confirmed real-world iPhone takeover, and updated devices (iOS 18.7.3+ or 26.3+) are marked as patched.

Report URI estimated roughly $7,040 had reached attacker wallets by the evening of 16 November, though other researchers note this is not yet a confirmed tally of victim losses. Hudson Rock also traced similar code to three other web services (Kissmetrics, StorifyMe and minute-ly) a few days earlier, without proving they share one entry route.

Why this website supply chain attack matters for your business

This is a website supply chain attack: you did nothing wrong, but a tool you trust delivered harmful code to your visitors. That has real consequences.

  • USA: card data skimmed from your checkout can trigger PCI DSS obligations, breach notification duties under state laws, and chargebacks.
  • UAE: the UAE’s federal data protection law (PDPL) expects businesses to protect personal data and respond to incidents. A skimmer on your site is still your incident.
  • Pakistan and everywhere: customers do not separate you from your vendors. If your checkout steals their card, the trust damage lands on your brand.

Most business sites run 10 to 40 third-party scripts. Each one is a door, and the Optimizely hack shows that the most respected vendors can be the route in.

Third-party script security: 7 steps to take this week

  1. Make a script inventory. List every external script on your site, who owns it, which pages load it, and who can edit it. Remove anything nobody uses.
  2. Check your Optimizely projects now. If you use Optimizely, review Project JavaScript and experiment code for unknown scripts, encoded strings or the indicators listed in the Report URI write-up. Ask the vendor which of your projects were changed.
  3. Lock down custom-code access. Limit who can edit tag managers and testing tools, turn on MFA, remove old users and rotate credentials.
  4. Deploy a Content Security Policy (CSP). Restrict script-src and connect-src to the hosts you need and avoid unsafe-eval where you can. A good content security policy can stop stolen data being sent to unknown servers, even if it cannot stop every in-page trick.
  5. Keep checkout clean. Do not load testing, chat or marketing scripts on payment pages. Use hosted payment fields (iframes) from your payment provider so card data never touches your page.
  6. Monitor script changes. Use CSP reporting or a script-monitoring service that alerts you when a third-party file changes. Keep copies of known-good versions for forensics.
  7. Have a kill switch. Know exactly how to disable a vendor script within minutes, and who is allowed to do it, including out of hours.

For crypto, fintech and e-commerce sites

If your site shows wallet addresses or takes card payments, assume you are a priority target. Show addresses as QR codes and ask users to verify them on a hardware wallet, review payment logs from 16 November, and watch for customer complaints about wrong addresses or card fraud.

Our cybersecurity services team can run a third-party script audit and set up CSP and monitoring for you. If your site needs a cleaner, faster build with fewer risky plugins and tags, our web development team can help, and our digital marketing specialists can keep tracking accurate while trimming unnecessary tags. For another recent lesson in vendor risk, read API Key Security: Lessons from Black October Breaches.

Frequently asked questions

Was Optimizely hacked?

Optimizely said an unauthorised party exploited a vulnerability in its Experimentation product to add malicious JavaScript to some customer projects. The company says the flaw is fixed and the injected code removed. It has not published full technical details.

How do I know if my website was affected by the Optimizely hack?

If you use Optimizely Web Experimentation, check your Project JavaScript and experiments for code you did not add, compare against Report URI’s indicators, review CSP reports and server logs from 16 November, and ask Optimizely whether your projects were modified.

What is the best way to protect a website from malicious third-party scripts?

Combine a short script inventory, strict access controls with MFA, a Content Security Policy, script change monitoring and hosted payment fields on checkout. No single control is enough on its own.

Get a free third-party script check

Not sure what is running on your website? TASCO IT Solutions helps businesses in the USA, Dubai and Pakistan audit and secure their sites. Message us on WhatsApp at +971 58 661 3940 or email info@tascoit.com to book a review.

Sources