Free tech learning for everyone, from basics to pro

NewsBeginner

Optimizely attack: malicious code hit 178 big websites. What to do

In short: On 16 November 2026, attackers exploited a vulnerability in Optimizely Experimentation to add malicious JavaScript to some customer projects. Researchers found infected scripts on sites of 178 organisations. The code swapped crypto wallet addresses, tried to skim card details and stole cookies. Visitors should check payments; companies should control third-party scripts.

What happened

Optimizely Experimentation is a widely used service for A/B testing: websites load Optimizely's JavaScript so they can show different versions of a page to different visitors. On 16 November 2026, Optimizely detected that an unauthorised party had "exploited a vulnerability" in the platform to add malicious JavaScript to some customer projects. Optimizely says it fixed the vulnerability less than three hours later and removed the injected code the same day. It has brought in Mandiant to investigate.

Because Optimizely's script runs inside its customers' websites, the malicious code ran on those sites too. Researchers at Report URI examined 1,611 Optimizely scripts and found 188 infected scripts across 178 organisations, in sectors from banking and retail to streaming, airlines and healthcare. Salesforce said it was investigating unauthorised changes to Optimizely scripts on some of its websites and disabled them as a precaution. These are potentially affected sites, not confirmed breaches.

What the malicious code did

According to researchers, the injected JavaScript:

  • Swapped cryptocurrency wallet addresses that users copied, so payments could go to the attackers.
  • Tried to skim payment card details typed into pages.
  • Stole browser cookies, which can let attackers hijack a logged-in session without a password.
  • Captured screenshots, and sent some older iPhone and iPad users towards iOS exploit pages.

Estimates of exposure are wide, from about 6 million to 150 million page visits, because researchers can only count visits that loaded the code, not people who were actually harmed.

What visitors should do

  • If you entered card details or sent cryptocurrency on a large website on 16 November, check your statements and confirm crypto went to the right address. Report any unknown payment to your bank immediately.
  • If you were logged in to big-brand websites that day, log out of all sessions and change your password.
  • Update your iPhone, iPad and other devices, and turn on transaction alerts and multi-factor authentication.

What website owners should learn

This is a classic software supply chain attack: the website itself was not hacked, but a trusted third-party script it loads was. Every external script has full access to your page, including forms and cookies. Reduce the risk by:

  • Keeping an inventory of every third-party script and removing ones you no longer need.
  • Using a Content Security Policy to limit where scripts can load from and send data to, with violation reporting so you notice changes.
  • Keeping third-party scripts off payment and login pages where possible.
  • Monitoring scripts for unexpected changes, and protecting vendor accounts with strong multi-factor authentication.

Why one script can affect so many sites

Large websites load dozens of scripts from outside companies for analytics, testing, chat, advertising and payments. Each one runs with the same power as the site's own code. When a single vendor is compromised, every customer that loads its script is affected at once, which is why attackers increasingly target these shared services instead of individual websites.

Related: SBOM and SLSA explained, supply chain security and the OWASP Top 10.

Key takeaways

  • Attackers exploited a flaw in Optimizely Experimentation on 16 November 2026 to inject malicious JavaScript into customer sites.
  • Researchers found infected scripts on sites of 178 organisations, including banks, airlines and media firms.
  • The code swapped crypto addresses, tried to skim cards and stole session cookies.
  • Visitors should check payments and log out of sessions; site owners should inventory and restrict third-party scripts.

Understand the basics

New to this topic? These short FM TecHub guides explain the ideas behind this story.

Sources and further reading

Verified author✓ Valid
Issued to
FM TecHub Team
Role
Editorial team
Reviewer credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

The team writes practical, plain-English guides on networking, security and cloud.

More about the team →

© 2026 FM TecHub. Original content written for FM TecHub. Share the link freely; please don't copy the text elsewhere without permission.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown