Five Fraud Controls Every Organisation Should...
Fraud risks continue to evolve, but many of the most effective controls remain practical and straightforward. This article looks at...
Read MoreA website can have secure servers, patched software, strong authentication and effective monitoring, yet still deliver malicious code directly to its visitors. That is the uncomfortable lesson from a major supply-chain attack involving Optimizely Web Experimentation, a platform widely used for website personalisation and A/B testing.
On 16 November 2026, attackers exploited a flaw in Optimizely’s Web Experimentation account signup process. According to Optimizely, the vulnerability allowed attackers to impersonate users on targeted customer accounts and insert malicious JavaScript into customer projects. The code was then delivered through Optimizely’s legitimate infrastructure to visitors of affected websites.
Security researcher Scott Helme and Report URI identified 188 infected Optimizely scripts belonging to 178 organisations, including major technology, media, financial services, retail and travel brands. The malicious code was capable of replacing cryptocurrency wallet addresses, attempting to steal payment-card details, collecting browser-readable cookies and screenshots, and directing vulnerable iPhones and iPads towards exploit kits.
The important point is that the websites themselves did not necessarily need to be directly compromised. They had already chosen to trust Optimizely’s JavaScript, so when that trusted code changed, visitors’ browsers could execute the malicious version too.
Optimizely Web Experimentation allows organisations to run experiments and personalise website experiences. Customers add a JavaScript snippet to their website which is served from Optimizely’s content delivery network, or CDN, and executes inside the visitor’s browser.
Attackers exploited a vulnerability in Optimizely’s account signup flow and used it to impersonate users belonging to targeted customer accounts. They then inserted their own code into the Project JavaScript field. Optimizely says the incident was not the result of stolen customer credentials.
From the affected website’s perspective, the script could still appear legitimate because it came from Optimizely’s normal infrastructure and a domain the organisation had deliberately trusted. This is what makes browser-side supply-chain attacks particularly difficult to identify. The web server itself may continue operating normally, with no malicious file inside the organisation’s hosting environment and no attacker logged into its content management system.
Optimizely says it detected the malicious activity on 16 November, blocked delivery of the code and closed the underlying vulnerability within three hours. It also ended active sessions, revoked tokens, reset access for impersonated users and removed the injected code from affected projects. The company says fewer than 5% of its customers were affected and that the incident was confined to Web Experimentation.
Report URI found that the malware changed throughout the day as the attacker added functionality. One element searched webpages, forms, links, clipboard activity and other browser content for cryptocurrency wallet addresses. Where it detected one, it could substitute an address controlled by the attacker, potentially causing a user to send cryptocurrency to the wrong destination.
The attackers also added payment-card skimming functionality capable of monitoring accessible forms and browser requests for card numbers, expiry dates and security codes. The script could collect browser-readable cookies and screenshots and, for some users running older iPhone and iPad software, direct devices towards exploit kits targeting known iOS vulnerabilities. Apple told Reuters that the vulnerabilities had already been fixed for users running current versions of its software.
This does not mean every visitor to an affected website had information stolen or a device compromised. Reuters was unable to determine how many users were successfully affected, and several named organisations said their investigations had found no evidence of compromise to their systems or customer information. The incident does, however, demonstrate the level of access JavaScript can potentially have when it executes within a user’s browser.
Modern websites often contain far more code than the organisation itself writes. Analytics platforms measure visitor behaviour, advertising networks track campaigns, consent-management tools record privacy choices, chat widgets provide customer support, payment providers handle transactions and marketing tools personalise content. Each service may require JavaScript to run within the site.
This creates a client-side software supply chain. From a security perspective, third-party code that executes within your webpages effectively becomes part of the application being presented to users. This means a secure server does not necessarily equal a secure website.
Traditional controls remain important. Servers should be patched, content management systems updated, administrator accounts protected and vulnerabilities tested. However, those controls cannot by themselves prevent malicious activity originating from code supplied by a trusted external provider.
This also means supplier approval should not become permanent trust. A vendor may have passed due diligence at the point of procurement, but vulnerabilities can emerge, products can change and suppliers themselves can be compromised. Organisations therefore need to understand which external scripts are running across their websites, why each one is required and who owns the relationship with the provider.
Over time, this can become difficult to track as marketing teams, developers, agencies and other functions add new tools. Some may eventually stop serving a useful purpose while continuing to load in visitors’ browsers. Maintaining an inventory and removing unnecessary third-party scripts can therefore reduce the attack surface.
One of the clearest technical lessons from the incident concerns Content Security Policy, or CSP. CSP allows a website to tell a visitor’s browser which sources of scripts, frames, network connections and other content should be permitted.
Report URI analysed protections across affected sites and found significant differences. Of the sites it examined, 68 had no CSP at all, while another 50 had policies that still permitted both the malicious payload and the resulting data theft. In contrast, 24 organisations had policies that blocked the malicious payload.
CSP cannot prevent a supplier itself from being compromised, but a sufficiently restrictive policy can limit what compromised code is able to do. For example, if an authorised script attempts to load additional code from an unexpected domain, the browser can block the request if that domain has not been permitted.
However, CSP needs careful implementation. Policies that are too permissive provide limited protection, while those introduced without sufficient planning can interfere with legitimate website functionality. The objective should be to understand what the website genuinely needs to load and progressively restrict activity outside those requirements.
The payment-card functionality observed during the attack also highlights why pages handling sensitive financial information deserve particular attention. Report URI found that malicious JavaScript could potentially access payment-card fields implemented directly within an affected webpage, while hosted payment fields contained within appropriately isolated third-party frames were more difficult for the malicious script to access.
This reflects an important security-design principle: sensitive functionality should be isolated wherever practical. If numerous marketing, analytics, personalisation and experimentation scripts are allowed to execute on the same page where customers enter payment information, compromise of one of those dependencies may increase the potential impact.
PCI DSS v4.x has increasingly recognised this problem, placing greater emphasis on authorising, inventorying and monitoring scripts used on payment pages and detecting unauthorised changes. The Optimizely incident provides a useful real-world example of why those controls matter.
Browser-side attacks can create a particular incident-response challenge because, by the time an organisation learns that a third-party script was compromised, the malicious version may already have disappeared. The supplier may have fixed the issue, the script may have returned to normal and the website may look exactly as it did before.
Investigators may then need to determine what code actually executed in visitors’ browsers several hours earlier. Following the Optimizely incident, Report URI said affected organisations contacted it seeking historical evidence of what JavaScript had been served because they did not necessarily have that visibility themselves.
This demonstrates the value of client-side monitoring and historical script visibility. Organisations do not necessarily need to block every unexpected change automatically, as this can create operational problems, but they should be able to identify when a trusted script begins behaving differently or communicating with unexpected destinations.
CSP can also initially operate in reporting mode, allowing teams to identify unusual script sources or connections without immediately preventing legitimate functionality. The important point is visibility: if a trusted supplier script suddenly begins loading code from a new domain, the organisation should ideally be able to identify that quickly rather than discovering it through an external report.
The Optimizely incident provides a useful opportunity for organisations to review browser-side security and understand which third-party scripts their websites currently load. Scripts that are no longer required should be removed, while high-risk pages, particularly payment, authentication and account-management journeys, should receive additional scrutiny.
Organisations should also review whether Content Security Policy is deployed and whether it meaningfully restricts script execution, network connections and frames. Where practical, third-party code can be isolated or pinned to known versions. Subresource Integrity may also provide protection for static third-party resources, although this can be more difficult with services specifically designed to change their JavaScript dynamically.
Supplier incident-response planning should include client-side dependencies. If a vendor announces that its JavaScript has been compromised, security teams should be able to establish which websites loaded it, during what period, what information visitors may have entered or viewed, and whether further investigation, regulatory action or customer notification may be required.
The Optimizely incident demonstrates how the boundaries of a modern website have changed. An organisation may own the domain, host the application, maintain the servers and write most of the code, but the final webpage delivered to a user can still depend on numerous external organisations.
A browser does not distinguish between code written internally and code supplied by a marketing, analytics or experimentation provider. It simply executes what the website has instructed it to trust. Third-party JavaScript therefore forms part of the organisation’s effective security perimeter.
The lesson is not that businesses should stop using experimentation, analytics, personalisation or other external web services. These tools provide genuine value. It is that trust in external code needs appropriate boundaries, visibility and monitoring, because your own website does not need to be hacked for visitors to be exposed through a trusted dependency.
AJC helps organisations assess and strengthen their cyber security, including the security of websites, applications and third-party dependencies. Our team can support businesses with penetration testing, vulnerability assessments, cyber risk reviews and incident-response planning to help identify weaknesses and strengthen resilience.
Contact AJC on 020 7101 4861 or email info@ajollyconsulting.co.uk to discuss how we can help strengthen your organisation’s website and application security.
Sources
https://blog.report-uri.com/worlds-largest-brands-infected-with-malware-via-optimizely/
https://unit42.paloaltonetworks.com/optimjack-supply-chain-attack/
https://krebsonsecurity.com/2026/11/attackers-used-optimizely-to-a-b-test-malware-on-top-websites/
https://blog.report-uri.com/get-the-evidence-before-the-attack-just-give-us-30-seconds/
Image accreditation: Curated Lifestyle (February 2026) from Unsplash.com+. Last accessed on 24 November 2026. Available at: https://unsplash.com/photos/person-typing-on-laptop-with-code-4dnUGS5QNNs
Fraud risks continue to evolve, but many of the most effective controls remain practical and straightforward. This article looks at...
Read MoreFraud risks are continuing to evolve as criminals make greater use of AI, stolen identities and weaknesses in everyday business...
Read MoreThe new Cyber Essentials First Step Fund reduces the cost of certification for eligible SMEs. This article looks at what...
Read More