News Analysis 10 min read

Optimizely Incident Makes Browser Scripts A Payment Boundary

Optimizely's signup flaw let attackers inject browser code into customer sites. Scope affected pages, preserve evidence and harden script policy.

By Protocol Report Editorial | Updated November 18, 2026
An amber impersonated account changes an experimentation script that reaches three browser windows before a cyan content security policy gate blocks the path and isolates a payment frame
Short Version

Optimizely says an unauthorized party exploited a flaw in the Web Experimentation account signup flow on November 16, 2026. The flaw let newly created accounts impersonate administrator users without obtaining their passwords, then change Project JavaScript in selected customer projects. That JavaScript was delivered through the normal Optimizely snippet and ran in visitors' browsers. Optimizely says the vulnerable path was closed at 16:10 UTC, delivery of known malicious outbound code was blocked, active sessions and tokens for impersonated users were revoked, and injected code was removed from affected projects by 22:24 UTC. The company says Feature Experimentation, its SDKs and legacy Full Stack were not affected.

The incident is not a customer-password breach, but it is a browser supply-chain incident. Optimizely's preliminary analysis says the payload targeted payment cards entered into same-page forms, cryptocurrency transfers and, on older iOS and iPadOS versions, a second-stage exploit attempt. Hosted payment iframes were outside the script's reach, and the vendor says a strong Content Security Policy blocked the external skimmer. Customers need their project-specific exposure window, page inventory and browser evidence before deciding whether visitors were at risk. Preserve CSP, CDN, WAF, fraud and payment records; identify pages that loaded the snippet; remove experimentation code from sensitive pages where it is not needed; and treat browser script publication as a production code change.

Key Takeaways

  • check_circle The confirmed entry path was a signup-flow flaw used to impersonate customer administrators, not stolen customer passwords or a compromised Optimizely administrator account.
  • check_circle The attacker changed Project JavaScript, and Optimizely's normal snippet delivery carried that code into visitors' browsers with the page's own privileges.
  • check_circle Risk is highest for affected pages that accepted on-page card details or cryptocurrency transfers without an enforcing CSP that blocked the second stage.
  • check_circle Hosted cross-origin payment iframes reduced exposure because the surrounding page script could not read their card fields through the browser's same-origin boundary.
  • check_circle Optimizely can identify targeted projects and customer-specific windows, but it cannot determine from its platform logs whether every browser-side collection or exfiltration attempt succeeded.
  • check_circle Recovery requires page and browser evidence, not password rotation by default; the vendor says customer passwords and API tokens do not need to be reset for this incident.

The Confirmed Timeline Is Short And Customer-Specific

Optimizely's November 17 incident report places the first attacker-created account at 00:37 UTC on November 16, the first malicious project change in its investigation at 07:51, detection at 13:34, and the first outbound-code block at 16:06. It says the signup flaw was fixed four minutes later, affected sessions and tokens were revoked by 16:53, and all injected code was removed by 22:24. The public status incident ran into November 17 while the company monitored recovery and communicated with customers.

Independent telemetry is not identical to that platform timeline. Report URI says its crawl observed an infected BBC snippet at 04:21 UTC and found 188 poisoned snippets belonging to 178 organizations among 1,611 snippets it checked. That is useful evidence about what researchers saw on the public web, not a vendor-confirmed count of every affected customer or visitor. Optimizely says it has directly told each customer whether a project was affected and can provide exact per-project exposure windows through the customer's account team.

Use the narrowest evidence available. Do not apply the full 07:51 to 22:24 vendor window to every page without checking the project record, and do not use the researcher's 178-organization sample as a complete victim list. Request the affected project IDs, revision history, first and last malicious delivery time and restoration record. Those details determine which visitor sessions, transactions and notification obligations belong in scope.

Impersonation Bypassed Authentication Without Stealing Passwords

The attacker created accounts through the Web Experimentation signup flow, then used a previously unknown flaw to act as existing administrator users. Optimizely says the attempts combined public account information with repeated guesses of employee email-address variations. Account and project identifiers were already present in public snippets because the product needs them to retrieve the right configuration; they were references, not secrets. Repetition across customers did not mean one compromised tenant granted access to another.

This distinction changes response. Resetting every Optimizely password would address a credential-theft theory the vendor does not support. The company says no customer password was obtained or used, no Optimizely administrator account was breached, and customer API tokens do not need regeneration for this event. It ended the attacker-controlled sessions, revoked their tokens and reset access for the impersonated users as part of containment.

It does not make the identity failure minor. A new account could cross an authorization boundary and inherit an administrator's ability to publish code. SSO and MFA on the real user's login could not stop a server-side impersonation path that bypassed that login. Customers should confirm that the recorded changes match the vendor's restoration activity, preserve audit history attributed to the impersonated identity, and ask for the final root-cause report before closing the identity-control finding.

Project JavaScript Was Production Code In Every Visitor Browser

Web Experimentation customers load a project-specific script from Optimizely's CDN. Project JavaScript is intended to let teams add custom behavior around experiments. Once the attacker changed that field, the CDN delivered the configured content exactly as the product was designed to do. Optimizely says the confirmed malicious changes were in customer Project JavaScript, not a compromise of the CDN itself. A valid vendor hostname and certificate therefore provided transport assurance, not assurance that the project content was safe.

The recovered payload loaded an external skimmer, monitored the page continuously, watched DOM changes and clipboard events, and reacted to form submissions. Optimizely says it targeted card numbers, expiry data and related fields in forms, replaced cryptocurrency wallet destinations, and in some cases sent readable cookies and a page screenshot. On iOS and iPadOS 18.6 and earlier it also attempted to load a separate exploit stage. Those are capabilities and attempts; they do not prove that every function succeeded in every browser.

The operational lesson is concrete: remotely managed experimentation code belongs in the same change-control inventory as tag-manager containers and application releases. Record who can publish it, require independent review for changes, alert on new network destinations and retain prior revisions. A marketing or experimentation console can alter the security behavior of a payment, login or wallet page without a normal application deployment, so its authorization and telemetry must be treated accordingly.

Page Architecture Determines Visitor Risk

Optimizely rates confirmed affected pages with on-page card entry and no strong CSP as high risk. The script ran wherever the affected snippet loaded, without a page-specific trigger. If card fields were ordinary elements in the same document, page JavaScript could read them. If a visitor performed a crypto transfer, the payload could look for wallet addresses in page content, inputs, the clipboard or outgoing requests and replace the destination.

Hosted payment iframes create a different boundary. A payment form served from a processor's separate origin is not readable by ordinary JavaScript in the merchant page under the browser's same-origin policy. Optimizely names Stripe and Adyen hosted iframes as examples and assigns that design lower risk. Lower is not zero: teams still need to confirm that the actual integration used a cross-origin hosted form, that no duplicate card fields existed in the parent page, and that surrounding checkout data did not expose another sensitive workflow.

A strong CSP also needs precise proof. Allowing the Optimizely CDN in `script-src` would not by itself stop malicious code already inside the trusted snippet. The vendor says protection came from blocking the skimmer it tried to load from an attacker domain. An enforcing `connect-src` can separately block `fetch`, XHR, WebSocket and `sendBeacon` exfiltration to unapproved hosts. Review the policy actually returned on each affected page and its violation reports; a report-only policy or a broad `https:` allowance is not equivalent to enforcement.

Investigation Starts At The Browser Edge

First obtain Optimizely's customer-specific determination and exposure window. Map every production hostname and route that loaded each affected project snippet during that interval. Prioritize checkout, account, wallet, support and authenticated pages, then identify the forms, cookies, experiments and network permissions available in those documents. Preserve project revision history and any custom JavaScript that Optimizely restored, especially where attacker code replaced rather than appended to existing code.

Search CSP reports, CDN and reverse-proxy logs, browser telemetry, secure web gateway records and DNS data for the preliminary attacker domains in the vendor report. Correlate those requests with page loads, form submissions, card authorizations, chargebacks and cryptocurrency transfers. A request to the exfiltration endpoint is strong evidence that the second stage ran, but the absence of a server log is not proof of safety if browser egress was not recorded. Ask payment and fraud teams to preserve their own evidence before retention windows expire.

Separate customer-system scope from visitor scope. Optimizely says the browser script had no access to customer networks, and there is no evidence that other Optimizely products were affected. The incident may still create privacy, payment and notification duties for a site whose visitors loaded malicious code. Legal conclusions depend on affected pages, jurisdictions and evidence of collection, so security teams should provide a fact table rather than declaring a breach or no breach from the vendor notice alone.

Reduce Browser Authority Before The Next Vendor Incident

Remove experimentation snippets from payment, wallet, password and recovery pages unless an active business requirement justifies them. Maintain an inventory of every script that can execute on sensitive routes, its owner, purpose, publication path and approved network destinations. PCI Security Standards Council guidance for payment pages calls for authorizing, justifying and checking the integrity of scripts; the same discipline is useful outside card environments.

Deploy CSP in report-only mode long enough to find legitimate dependencies, then move to enforcement with narrow `script-src`, `connect-src`, `frame-src`, `form-action` and related directives. Avoid `unsafe-inline`, `unsafe-eval`, broad schemes and wildcard hosts where the application can operate without them. Send violation reports somewhere monitored and test failure behavior. CSP is a containment layer, not a substitute for controlling who can edit a trusted vendor project.

Subresource Integrity can pin a static third-party file, but a dynamically generated experimentation snippet changes by design and may not be a practical SRI target. Do not claim a control merely because it appears in a generic checklist. Where code cannot be pinned, reduce where it runs, isolate sensitive inputs in cross-origin frames, govern console changes as code, monitor the delivered artifact and rehearse rapid removal. Close this incident only after project scope, browser evidence, visitor response and the vendor's final forensic findings are reconciled.

Checklist

  • Request the affected project IDs, exact delivery windows, revision history and restoration record from Optimizely.
  • Inventory every page that loaded the affected snippet, prioritizing on-page card forms, wallets, login and account workflows.
  • Preserve CSP reports, CDN, WAF, proxy, DNS, payment, fraud and transaction evidence for the project-specific window.
  • Search the vendor's preliminary domains and correlate browser connections with form submissions and crypto transfers.
  • Verify whether payment collection used a truly cross-origin hosted iframe and whether the parent page held duplicate sensitive fields.
  • Remove unused experimentation code from sensitive routes and enforce a narrow CSP with monitored violation reporting.
  • Require review and alerting for Project JavaScript and tag-manager changes, then track the vendor's final forensic update.

Sources

Related Articles

Continue Reading