Optimizely Web Experimentation code injection exploited
Actively exploited
Risk assessment
Optimizely Web Experimentation lets attackers inject code into cdn.optimizely.com projectJS, exploited in the wild (CVSS 8.7). Update before 2026-11-17.
What to do
The vendor has published a patch — see the "Vendor Patch" link in the references section. If you cannot patch immediately, review mitigation guidance in this advisory and monitor for exploitation attempts.
- Install the vendor fix: vendor patch
- Remediation and Mitigation in this advisory
Actively exploited in the wild - CVE-2026-132224 is a high-severity code injection flaw in Optimizely Web Experimentation (builds before 2026-11-17) that lets an attacker plant their own JavaScript inside projectJS fields served from cdn.optimizely.com, so that code runs in the browsers of every visitor to an affected site. Fixes are available in releases dated 2026-11-17 or later; upgrade now.
Overview
Optimizely Web Experimentation is a hosted platform that lets marketing and product teams run A/B tests and personalization on their websites. Sites load an Optimizely snippet from cdn.optimizely.com, which pulls the project’s configuration and any custom “Project JavaScript” (projectJS) set by the account owner. That JavaScript executes in the context of the customer’s own domain for every visitor.
The signup flow mishandles how projectJS is populated for new accounts. An attacker can influence the JavaScript that gets stored in a projectJS field tied to assets served from cdn.optimizely.com, so their code becomes part of the script the browser loads. Because the payload is delivered from Optimizely’s domain and then runs on the customer site, it inherits the trust of both. No plugin, browser extension, or local access is needed: the attacker only needs to complete parts of the signup flow and persuade a victim to visit a page that loads the affected snippet (a low-privilege, user-interaction-required path, hence CVSS 8.7 rather than 9.x).
Impact
Any injected JavaScript runs with full page privileges on the customer’s origin. That means an attacker could:
- Steal session cookies and authentication tokens where they are readable from JavaScript.
- Rewrite or overlay page content, including login forms, to harvest credentials.
- Redirect visitors, mine crypto, or load further malware.
- Read form data before it is submitted.
Because the script is served from cdn.optimizely.com, many content security policies that allowlist Optimizely will not block it. Once a malicious projectJS value is stored, it persists for every visitor until the field is cleared or the project is rebuilt.
Remediation and Mitigation
- Upgrade. Move to an Optimizely Web Experimentation release dated 2026-11-17 or later, which corrects the signup flow handling.
- Audit projectJS. Review the Project JavaScript field in every project for unexpected or unknown code, and remove anything you did not author. Treat injected values as a possible compromise.
- Rotate secrets. If you find unexpected code, rotate session secrets, API keys, and any credentials reachable from your web front end.
- Tighten CSP where feasible. Use nonce- or hash-based policy for your own scripts rather than broadly allowlisting CDN hosts, and consider subresource integrity for critical bundles.
- Review signup logs. Look for suspicious or automated account creation around your projects.
Organizations that need current incident context can follow breach reports and security news.
Security Insight
This case is a reminder that third-party experimentation platforms are high-value supply-chain targets: a single stored script field turns a marketing tool into a persistent injection point across every customer domain. It mirrors earlier CDN and tag-manager compromises, where trust in a vendor’s origin did the attacker’s work. The narrow entry point (account signup) and low EPSS (0.4%) suggest targeted rather than mass exploitation, but the blast radius for a single hijacked project is the entire visitor base. Audit your tag and experiment scripts as carefully as you audit your own code.