Skip to Side A
SIDE A AI & ML

Optimizely JavaScript Breach Exposed 178 Websites to Malware

Track #24 Date Artist BrianKrebs Plays 959

Malicious code delivered through Optimizely reached 178 organizations. The incident shows how third-party scripts and weak content rules can expose visitors.

Optimizely JavaScript Breach Exposed 178 Websites to Malware

A compromise in a website testing platform turned a routine third-party script into a delivery route for malware on 178 organizations’ websites. The incident is a practical warning for teams that rely on externally hosted JavaScript: a vendor’s code can run early in a page load, with access to visitor data and page content, even when the site’s own systems remain untouched.

Report URI researcher Scott Helme said the malicious code was served through Optimizely on November 16, 2026. Affected destinations included BBC, CNN, Equifax, Ledger and Zoom. The payload changed 26 times during that day, according to Report URI, and delivered a malware kit capable of stealing payment card details, browser cookies and screenshots. It could also replace cryptocurrency payment addresses with ones controlled by the attackers.

Some affected pages also delivered exploit code aimed at older Apple iPhone and iPad devices. The code used exploit kits known as DarkSword and Coruna, which chain several known security flaws to take control of vulnerable devices and extract data. The incident therefore reached beyond browser-based theft: visitors using outdated devices could face a separate risk from the same compromised script.

Optimizely’s response

Optimizely said an unauthorized party exploited a vulnerability in its Experimentation product to add JavaScript to some customer projects. The company said it identified the incident on November 16 and blocked access to the vulnerable path, deployed a fix and removed the injected code from affected projects. It also ended active sessions, revoked tokens and reset access for affected accounts.

The company said it added protections to prevent malicious code from being delivered through Cloudflare and was working with outside specialists on an investigation. Those steps describe containment and access cleanup; the investigation’s findings may clarify how the vulnerability was reached and whether any customer data or credentials were exposed beyond the payload’s reported theft capabilities.

Why one vendor script can reach so many visitors

JavaScript runs in a visitor’s browser. It can read information shown on a page, change the page’s contents and interact with other scripts. Websites use it for features such as analytics, advertising and product experiments. A vendor’s script can be especially sensitive when it loads near the beginning of a page, before other content or user choices have appeared.

Zach Edwards, a researcher at Infoblox and co-founder of ad-tracking service DecryptAds, said Optimizely snippets are often placed high on a page so that experiments can run promptly. He said the code is designed to execute as soon as the page loads, rather than wait behind a consent dialog. In this incident, that meant visitors generally did not need to click anything for the malicious code to run.

The wider dependency problem is familiar to web teams: a site can inherit risk from code hosted by a supplier. HTTP Archive’s 2025 Web Almanac reports that the median homepage loads at least 22 JavaScript files. Each external script adds a dependency that may change independently of the site’s own release process. If a supplier’s account or platform is compromised, altered code can reach many customers at once.

Content rules offered uneven protection

Content Security Policy, or CSP, lets a site specify which domains may supply scripts and other resources. A carefully maintained policy can block an unexpected source introduced by a compromised vendor script. It takes work to deploy correctly: teams need to inventory legitimate dependencies, set rules that fit the site, and maintain them as services change. Broad allowances can weaken the protection.

Report URI found that 68 affected sites had no CSP. Another 50 had policies that still permitted the malware and its data theft. Only 24 sites, or 15 percent of those assessed, had policies that fully blocked the payload. Helme’s Crawler Ninja, which checks the top million websites each day for security issues, puts CSP use across the busiest sites at about 10 percent.

Edwards said many sites either skip CSP or leave it permissive to accommodate marketing tools. That tradeoff can make new integrations easier, but it also means a compromised script may be able to load code from additional domains without being stopped. CSP does not remove the need to vet vendors or monitor changes, but a strict policy can limit what a third-party script is allowed to fetch and execute.

What teams and visitors can take from it

Report URI estimated that the operators stole about $7,500 in virtual currency. The number of payment card records taken was unknown. That estimate captures only part of the impact: the incident also demonstrated how a single supplier compromise can expose visitors across unrelated organizations, while the affected sites may have no direct breach of their own infrastructure.

For site operators, the immediate lesson is to review which third-party scripts run, when they load and what domains they can contact. A CSP can help contain unexpected behavior, but its value depends on rules that are specific enough to block unfamiliar sources. Teams should also understand how quickly they can disable a vendor integration and revoke its access if its platform is compromised.

Visitors can reduce exposure with script-blocking tools such as NoScript, though managing individual script requests can be inconvenient. Ad and script blockers can also stop many third-party requests. The larger change needs to happen at the site level: as vendors become part of the page’s execution path, teams need rules and monitoring that treat their code as an ongoing operational dependency.

Source: BrianKrebs · krebsonsecurity.com
MORE

Same Mixtape