Earlier today, Optimizely identified a security incident in which an unauthorized party exploited a vulnerability in Experimentation and used it to add malicious JavaScript to some customer projects. We've fixed the vulnerability and removed the injected code from affected projects. We've also taken steps to secure affected user accounts and put additional protections in place to prevent unauthorized code from being delivered.
Earlier today, Optimizely identified a security incident in which an unauthorized party exploited a vulnerability in Experimentation and used it to add malicious JavaScript to some customer projects. We've fixed the vulnerability and removed the injected code from affected projects. We've also taken steps to secure affected user accounts and put additional protections in place to prevent unauthorized code from being delivered.
Specifically, the vulnerability was in Optimizely’s Web Experimentation account sign-up flow. The attackers dropped malicious code into a custom field (Project JavaScript) customers use to write custom JavaScript that loads on all pages. The field, along with Optimizely code and the customer’s experiments, was served to websites from Optimizely’s content delivery network (CDN). The CDN didn’t catch the malicious code because it came from a trusted source.
Mobile visitors were also affected, as attackers delivered the code via the Coruna and DarkSword iOS exploit kits on older iOS versions.
In total, 178 customers of the Web Experimentation platform (less than five percent according to Optimizely) were affected, including Salesforce, Zoom, CNN, IKEA, Peacock, BBC, and more. The code stole credit card details, collected cookies and screenshots, and redirected cryptocurrency payments. Attackers stole a total of $7,000, mostly in crypto.
The firms affected took as much action as possible to limit exposure for their customers. For example, in a statement, Salesforce said:
Salesforce is investigating unauthorised modifications to scripts provided by Optimizely and used on certain Salesforce websites. As a precaution, Salesforce is confirming Optimizely scripts are disabled across preview and production instances. We continue to investigate and will notify affected customers without undue delay if we identify unauthorized access to their data.
Salesforce is investigating unauthorised modifications to scripts provided by Optimizely and used on certain Salesforce websites. As a precaution, Salesforce is confirming Optimizely scripts are disabled across preview and production instances. We continue to investigate and will notify affected customers without undue delay if we identify unauthorized access to their data.
It wasn’t only customer websites; Optimizely’s own website and secure login were also impacted.
Scott Helme, a security researcher at Report URI, first identified the malicious code . Report URI did a sweep of 1,611 scripts and found 186 infected. The company says the number was likely higher because it couldn’t check only the snippets it could find before the attack was caught and cleaned.
Optimizely said it caught the activity the day it happened, blocked the code's delivery, and patched the vulnerability within three hours, and insists no credentials were stolen. The attackers exploited a flaw in the sign-up process that enabled them to act as administrators. Optimizely has not explained exactly how this happened. Although the vulnerability was patched, it took longer to clean all the affected sites. By the end of day on November 18, all sites were fixed except one.
Beware your third-party marketing scripts
In the aftermath of the incident, there are opinions on the hack and what it means for vetting software vendors. Explains Craig Ridgeway , Sales Director, Dynamic Yield:
Everyone in Martech asks clients to put our code on their site. That’s a privilege, and it needs to come with matching rigour: tight access controls, change monitoring, and openness when something goes wrong. It's something that every organisation has to take into account when selecting a new vendor.
Everyone in Martech asks clients to put our code on their site. That’s a privilege, and it needs to come with matching rigour: tight access controls, change monitoring, and openness when something goes wrong. It's something that every organisation has to take into account when selecting a new vendor.
Charbel Gereige, Co-founder and COO at AiiQ, made a key point, saying :
The real vulnerability? Companies give third-party marketing scripts enormous privileges inside their websites. A tool designed to optimise conversion rates became a vehicle for stealing money. That's software supply-chain risk in action.
The real vulnerability? Companies give third-party marketing scripts enormous privileges inside their websites. A tool designed to optimise conversion rates became a vehicle for stealing money. That's software supply-chain risk in action.
Final Web Design provided some advice for SMBs :
What protected some sites [were] hosted payment fields - Optimizely says cards entered in hosted payment iframes like Stripe or Adyen were not accessible - [and] a strict Content Security Policy - per Engine Journal, only 24 of 159 affected organizations Report URI reviewed blocked the code outright, thanks to a restrictive script-src. For small businesses, the takeaway is simple: know every outside script on your site, remove what you don't use, lock down the accounts that can change them, and keep card numbers in your processor's hosted fields.
What protected some sites [were] hosted payment fields - Optimizely says cards entered in hosted payment iframes like Stripe or Adyen were not accessible - [and] a strict Content Security Policy - per Engine Journal, only 24 of 159 affected organizations Report URI reviewed blocked the code outright, thanks to a restrictive script-src.
For small businesses, the takeaway is simple: know every outside script on your site, remove what you don't use, lock down the accounts that can change them, and keep card numbers in your processor's hosted fields.
For its part, Optimizely moved to re-assured customers that security was a top concern for the company, saying:
The security of your data and the trust you place in us are our highest priority. Optimizely’s platform is protected by layered security controls, continuous monitoring and a dedicated security team, which is why we could detect and contain this incident on the day it began. Attackers are increasingly using AI to find and exploit weaknesses easier, faster and at greater scale, and we are responding to that. We are strengthening our security strategy, hardening systems and using the latest in AI capabilities to counter the sophistication of attackers.
The security of your data and the trust you place in us are our highest priority. Optimizely’s platform is protected by layered security controls, continuous monitoring and a dedicated security team, which is why we could detect and contain this incident on the day it began. Attackers are increasingly using AI to find and exploit weaknesses easier, faster and at greater scale, and we are responding to that. We are strengthening our security strategy, hardening systems and using the latest in AI capabilities to counter the sophistication of attackers.
The news of this hack seems to have started somewhat quietly, hitting mainstream media a day or two after it actually happened.
But it’s another wake-up call for customers using platforms adopting AI technology—tread carefully, and make sure the vendors you work with take security seriously.
Optimizely patched the vulnerability quickly, but it hasn't said exactly how the attackers got into the code in the first place. Was this part of the code in its new agentic platform? Are there other flaws in the other products that could be hacked too?
