Researchers said Tuesday that an attack exploiting a vulnerability in the Optimizely website experimentation platform on Monday deployed malicious JavaScript that swapped cryptocurrency wallet addresses, skimmed payment card details from some site forms and targeted older Apple iPhones and iPads with exploit kits. The code was served to visitors of 178 websites, including the BBC, CNN, HSBC, IKEA and Ledger.
Optimizely confirmed the incident, attributing it to an exploited vulnerability in its Experimentation signup flow. The company said it blocked the vulnerable path, removed the injected code, revoked tokens and reset access for affected user accounts. The injected code was delivered from Optimizely's own content delivery network and was signed with a valid certificate for that domain.
The attack targeted Optimizely's Web Experimentation software, widely used by companies to run A/B tests and personalise content without altering core site code. Security firm Report URI found the malicious code in 188 of the 1,611 Optimizely scripts it analysed.
The malware's primary goal was to intercept cryptocurrency transactions by replacing wallet addresses on the page and in the system clipboard. Report URI said the attacker's wallets received about $7,150 in crypto, mostly in Bitcoin, Litecoin and USDT, and were emptied early Tuesday. The script also targeted some payment forms, skimming card numbers, expiration dates and security codes when users typed them in.
On Apple devices, the malware attempted to deploy the Coruna and DarkSword exploit kits, which chain together known vulnerabilities to take control of iPhones and iPads running older, unpatched versions of iOS. Report URI said it could not determine how many devices were compromised or how many payment cards were stolen.
Corporate responses varied. Salesforce disabled Optimizely scripts as a precaution. Equifax stopped using the platform and said it found no evidence of a system compromise. HSBC said the unauthorised scripts were not active on its websites. IKEA said it was investigating.
Security researchers said the breach was exacerbated in part by a lack of strict content security policies. Helme said the incident showed that "trusted JavaScript doesn't always remain trustworthy." Report URI found that 68 of the affected sites had no CSP at all, and only 24 had a policy that fully blocked the malicious payload. Zach Edwards, a researcher at Infoblox, described the widespread lack of CSPs as leaving sites vulnerable to this kind of supply-chain attack.
Analysis
Why This Matters
- Demonstrates the systemic risk of third-party JavaScript embedded on major websites, where a single vendor breach can compromise hundreds of high-traffic destinations.
- The attack's multi-layered monetisation strategy (crypto theft, card skimming, device exploitation) points to a sophisticated threat actor capable of adapting payloads in real time.
- The relatively small cryptocurrency haul may understate the wider impact of stolen payment card data and compromised personal devices.
Background
The Optimizely incident is part of a broader pattern of supply-chain attacks targeting the JavaScript ecosystem, notably the Magecart campaigns that have compromised e-commerce checkout pages for years. Despite the availability of security controls such as Content Security Policies, adoption remains low among even the most visited websites.
Key Perspectives
Scott Helme, Report URI: Says the breach shows even vendor-hosted scripts cannot be fully trusted, and that organisations must enforce strict security controls on third-party code.
Zach Edwards, Infoblox: Argues that the attack was exacerbated by the widespread absence of effective Content Security Policies, leaving sites defenceless when a third-party partner is compromised.
Optimizely: States the breach was caused by an exploited vulnerability in the Experimentation signup flow, that it has been patched, and that affected customers have been contacted.
Salesforce, Equifax, HSBC: Confirm they took action to disable scripts or stop using the platform, indicating the breadth of the attack's impact on their operations.
What to Watch
- Whether affected companies disclose customer data loss or compromised devices in their investigations.
- Potential regulatory scrutiny of third-party software supply chains in the financial services and media sectors.
- Adoption of Content Security Policies across the top 10,000 websites in response to the incident.
Checked
12 claims in this story checked against 3 sources: 12 supported.
Show each claim
- SupportedA flaw in Optimizely was exploited to inject crypto-stealing malware into 178 major websites.Ars Technica - All content: “ReportURI said it identified 178 websites—including CNN, Zoom, the BBC, and Salesforce—that were affected.”
- SupportedOptimizely said it had patched the flaw and removed the injected code.www.theregister.com - Articles: “We've fixed the vulnerability and removed the injected code from affected projects.”
- SupportedOptimizely said: “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.”www.theregister.com - Articles: ““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,” the company said.”
- SupportedVictoria Johnson told Decrypt the attacker had “exploited a vulnerability in the Experimentation account signup flow.”Decrypt: “Optimizely spokesperson Victoria Johnson told that an unauthorized party had "exploited a vulnerability in the Experimentation account signup flow,"”
- SupportedThe vulnerability was in Optimizely’s signup flow and was used to add malicious JavaScript to customer projects.www.theregister.com - Articles: “Optimizely has since confirmed that the criminals exploited a vulnerability, dubbed "OPTIMJACK" by researchers, in the sign-up process for its experimentation software”
- SupportedThe affected sites included the BBC, CNN and Ledger.Decrypt: “The affected sites included Zoom, the BBC, CNN, Salesforce, GitLab, IKEA and HSBC, as well as crypto and trading firms such as Ledger, IG and OANDA.”
- SupportedOf 1,611 Optimizely scripts examined, 188 contained malicious code and were associated with 178 organizations.www.theregister.com - Articles: “Of the 1,611 Optimizely scripts examined by Helme and his team, 188 contained malicious code, including those used by Optimizely's own website and login portal.”
- SupportedThe malicious code was served from Optimizely’s own content delivery network.www.theregister.com - Articles: “The malicious code was distributed alongside the legitimate stuff from Optimizely's own content delivery network”
- SupportedThe malware replaced cryptocurrency wallet addresses on pages and in users’ clipboards with attacker-controlled addresses.Decrypt: “The script scanned web pages for valid wallet addresses on networks including , , , and , and replaced them with addresses controlled by the attacker, according to Report URI. It also swapped addresses copied to a user's clipboard”
- SupportedA later revision skimmed payment-card numbers, expiration dates and security codes from payment forms, but could not reach fields in third-party iframes.www.theregister.com - Articles: “A card skimmer added later in the day grabbed card numbers, expiration dates, and security codes from payment forms. However, according to a separate analysis by StepSecurity, card details entered into an iframe hosted by a third-party payment processor were beyond the malware's reach.”
- SupportedOn Apple devices running older iOS versions, the script attempted to load the Coruna and DarkSword exploit kits.www.theregister.com - Articles: “The malware attempted to deploy the Coruna and DarkSword exploit kits on iPhones and iPads running older versions of iOS”
- SupportedThe attacker’s wallets received about $7,000, mostly in Bitcoin, Litecoin and USDT, before being emptied early Tuesday.Decrypt: “The attacker's wallets received about $7,150 in crypto, mostly in Bitcoin, Litecoin and USDT, according to Report URI's update on Tuesday. The attacker emptied the wallets early on Tuesday.”