27 November 2026 / 7 minutes of reading / Julius Buday
When malicious code appears on a company website, suspicion usually falls on a vulnerable application, a compromised administrator account or a breached server. An incident in November 2026 revealed another possible route. The attackers did not need to break into individual websites or steal their owners’ passwords. They only had to exploit a marketing platform that was already legitimately integrated into those sites.
On 16 November 2026, an unauthorised party exploited a flaw in the registration process of Optimizely Web Experimentation. The platform is primarily used for A/B testing and website personalisation. It allows companies to compare different versions of their content, modify page elements and measure which variant performs better. To provide these functions, websites load JavaScript supplied by Optimizely. Once the platform was compromised, this legitimate ability to modify content became a route to website visitors.
According to Optimizely’s incident report, the attackers exploited a flaw that allowed them to impersonate administrators of selected customer accounts. No login credentials were leaked, and Optimizely’s own administrator account was not compromised. Nevertheless, the attackers were able to modify Project JavaScript within customer projects.
The first malicious code was added to a project at 07:51 UTC. Optimizely detected the activity at 13:34 UTC, fixed the vulnerability less than three hours later and terminated sessions belonging to the fraudulently created users. By 22:24 UTC, the malicious code had been removed from all affected projects. The company said the incident affected fewer than five per cent of Web Experimentation customers and that its other products were not affected.
The malicious JavaScript did not run on the affected companies’ servers. It ran in their visitors’ browsers. When someone opened an affected page, the script loaded additional code from infrastructure controlled by the attacker. Its purpose was to capture payment card details entered directly into forms and replace cryptocurrency wallet addresses during transactions. According to the investigation, payments handled through separate protected elements, such as hosted iframes provided by Stripe or Adyen, were outside its reach.
The attacker effectively turned a trusted distribution channel against its users. The website loaded a script from an expected source, and the visitor’s browser executed the code supplied by the page. From the user’s perspective, nothing appeared suspicious. They were still on the correct domain, the connection was protected by HTTPS, and the login or payment page looked exactly as it had before.
Optimizely is only one example of a much broader issue. Corporate websites rely on analytics tools, advertising platforms, tag managers, chat widgets, personalisation services, payment components, maps, video players and many other third-party integrations. Some merely collect technical data. Others can modify page content, read user input or load additional code.
Every such integration expands the attack surface of a web application. A company may have well-written application code, fully patched servers and properly secured administrator accounts, yet its visitors can still be exposed through a script supplied by a third party. The risk increases when the same tool is loaded on every page, including login screens, checkout flows and payment forms, even when its functionality is not needed there.
Similar incidents are not new from the perspective of Slovak cybersecurity authorities. Following the Polyfill.io attack, Slovakia’s governmental CSIRT warned that a widely used web library had turned malicious after a change of ownership and began redirecting visitors to potentially harmful websites. It recommended monitoring third-party services, implementing Content Security Policy, using Subresource Integrity and keeping dependencies to the minimum necessary.
One measure that helped reduce the risk during this incident was a properly configured Content Security Policy (CSP). CSP defines where a website is allowed to load scripts, images, frames and other content from. Even if an attacker injects a malicious instruction through an approved marketing platform, CSP can prevent it from loading another script or sending stolen information to an unknown domain.
Optimizely said websites with a strong CSP were protected from the external malicious script. It advised organisations to review CSP violation reports and outgoing browser requests, examine transactions made during the incident and remove Web Experimentation from pages where it is not used, particularly those that process sensitive information.
Simply adding a CSP header is not enough. An overly permissive policy that allows arbitrary sources or unsafe exceptions provides little more than a false sense of security. The policy must be tailored to the application, kept up to date and tested to ensure it blocks unexpected content without breaking legitimate website functionality. Subresource Integrity (SRI) can also help with static third-party files. Using a cryptographic hash, the browser verifies that the file it receives has not been modified. However, SRI cannot be applied easily to every dynamically generated script, which is why several layers of protection are necessary.
Companies often manage website administrator permissions carefully while giving much less attention to accounts and tools used by the marketing department. Yet a tag management or experimentation platform can have an influence comparable to an application administrator. If it allows users to inject arbitrary JavaScript, it can change displayed content, capture user input and communicate with external servers.
Organisations should know which third-party scripts their websites load, where those scripts are used, who can change their configuration and whether those changes are logged. Every user should have only the permissions they need, administrator accounts should be protected with multifactor authentication, and significant changes should require approval from another person. Unused integrations, accounts and tag manager entries should be removed rather than merely disabled.
Pages that process passwords, personal information and payments require particular attention. A third-party script should not run on them simply because it is automatically included in a shared website template. If the script is not needed on a particular page, the safest option is not to load it at all.
A conventional source code review may confirm that the application does not contain a known technical flaw. It may not reveal what a third-party service can do on a production page, whether CSP is configured effectively or whether a marketing account can inject custom JavaScript without additional approval. This is why a security audit and a penetration test complement each other and answer different questions.
Web application penetration testing should therefore examine more than forms, authentication and the backend. Third-party scripts, tag managers, payment components, administration interfaces and security headers are all part of the attack surface. A practical test can show whether any of these layers could be abused to obtain sensitive information, alter page content or deliver malicious code to customers.
The outcome should be more than a list of third-party domains. A company needs to understand what permissions each integration actually has, what would happen if one of them were compromised and which controls could stop the attack.
Analytics, marketing and personalisation tools can deliver malicious code to your customers without an attacker ever breaching your infrastructure. Citadelo will assess your third-party integrations, security headers and the practical ways in which your web application could be exploited.
All news