On 16 November 2026, attacker code reached visitors of many websites inside Optimizely Web Experimentation snippets. According to Report URI, which BleepingComputer credits with uncovering the attack, the code was written into each project’s Project JavaScript field, a place for custom code that customers write themselves. The rest of the snippet was unchanged, and most copies still came from cdn.optimizely.com, Optimizely’s normal host.
Report URI counted 188 infected snippets belonging to 178 organizations among the 1,611 it checked, and says the real number is probably higher. Optimizely has acknowledged the incident. How the attacker got write access to other customers’ projects, and who the attacker is, have not been confirmed.
You do not need to use Optimizely for this to matter. Most sites load code from analytics, tag manager, chat, consent and testing vendors, and the same pattern applies to all of them: code you did not write, from a host you trust, that people outside your development team can change. This guide sums up what the published reports say, explains why most of the Content-Security-Policies Report URI checked did not stop the code, and gives a checklist for your own pages.
Scope of this guide
Incident details come from the reports cited below, as of 17 November 2026, and may change as the investigations continue. The checklist is general guidance for sites you run. It is not a penetration test or an incident investigation.
1. What was reported about the Optimizely snippet attack
The timeline below comes from Report URI’s write-up, last updated on 17 November 2026 at 09:17 UTC.
- 04:21 UTC, 16 November: the first injected snippet is seen.
- About 20:40 to 21:10 UTC: mass clean-up of infected snippets.
- 23:11 UTC: Report URI sees every infected file it tracked clean.
- 01:02 UTC, 17 November: Optimizely posts a security notice for its Web Experimentation snippet delivery (Optimizely status page).
Optimizely told BleepingComputer that “an unauthorized party exploited a vulnerability in the Experimentation account signup flow”. It said it blocked the vulnerable path, deployed a fix, removed the injected code, ended active sessions, revoked tokens and notified all affected customers. Its status page says the vulnerability has been fixed and the injected code removed. How a signup flaw gave write access to other customers’ projects has not been confirmed, and neither has the identity of the attacker.
Report URI and StepSecurity analyzed the script that the injected loader fetched. The table separates what the code was written to do from what is known about the outcome.
| Behavior found in the code | What the reports say about the outcome |
|---|---|
| Swapping cryptocurrency wallet addresses in page text, forms, the clipboard and outgoing requests | Found in the code by Report URI, StepSecurity and Hudson Rock |
| Reading card number, expiry date and security code from a site’s own form fields | Found in the code. Hosted payment iframes were out of its reach. How many cards were actually sent is unknown |
| Sending non-HttpOnly cookies, the page URL and a screenshot to the attacker after a wallet swap | Found in the code. What the attacker received is unknown |
| Loading exploit-kit pages in a hidden frame for iPhone and iPad visitors | Report URI identified the kits. Hudson Rock and StepSecurity report that the exploit pages were delivered. No successful device compromise has been shown |
Report URI put the amount received by the attacker’s wallets at about seven thousand US dollars as of 19:25 UTC on 16 November; its 17 November update lists slightly higher amounts for some wallets. Report URI also says it cannot see how many cards or cookies reached the attacker’s server. BleepingComputer notes that some of the wallets were active before the attack, so the amount stolen is unclear. Hudson Rock, working with an independent researcher, reports that scripts from three other web services referenced the loader host webshell.lol in captures from 13 to 16 November. Report URI says the first injected Optimizely snippet loaded code from that host too. Hudson Rock says the shared hosts and code show a technical link, but do not identify one operator, and that how those services were compromised is unresolved. Report URI’s write-up lists which iOS versions each exploit chain targets.
2. Why most of the Content-Security-Policies checked did not stop it
A Content-Security-Policy (CSP) limits which hosts may serve scripts. It does not stop a compromised script served from a host you already allow. The injected code arrived inside the normal snippet from cdn.optimizely.com, so a policy with that host in script-src let the injected loader run. Report URI adds that sites which self-host the snippet were affected too, because the content comes from the same Optimizely project.
Report URI also crawled 256 hosts belonging to affected organizations and counted, per organization, what their policies did with the payload:
| What the site’s CSP did | Organizations |
|---|---|
| No CSP sent | 68 |
| CSP let the payload run and send data out | 50 |
Payload ran, but connect-src stopped the data from leaving | 17 |
| CSP blocked the payload | 24 |
The four groups add up to 159 organizations. Report URI does not say how the 256 hosts map to them. Per Report URI, what separated the 24 protected organizations was a restrictive script-src that listed only the hosts they needed, which blocked the payload host 1688360.cc. Its analysis points to three more details that decide whether a policy helps:
'unsafe-eval'. Report URI describes three loader variants: a plain script tag, a URL hidden withatob()and a full inline copy. One loader variant, the full inline copy, ran throughevalwhen1688360.ccwas blocked. Report URI notes that Optimizely’s own CSP guide told customers to allow'unsafe-eval'for some features; an archived copy of the guide from 9 October 2026 names audiences with custom JavaScript conditions. The current CSP guide, updated on 17 November 2026, no longer mentions'unsafe-eval'.'strict-dynamic'. It extends trust to any script a trusted script inserts, so whatever an allowed vendor script loads also runs, and browsers that support it ignore the host list inscript-src(Report URI; MDN script-src).connect-src. For 17 organizations, a tightconnect-srckept the data from leaving. It cannot stop code that rewrites the page itself, such as a wallet address swapped in place.
3. List the third-party scripts on your key pages
Start with the pages where a hostile script could do the most harm: home, sign-up, login, account and checkout. For each one, write down every external script host, the vendor behind it and the person in your team who owns that vendor.
- Read the HTML source for
<script src>tags. Then open the browser’s developer tools, filter the Network panel to JavaScript and click through the page. Tag managers and testing tools add more scripts after the page loads, and those never appear in the source. - Note which vendor features let someone other than your developers change the code: custom JavaScript fields, tag manager containers and “header scripts” boxes in a CMS.
- Remove tags nobody can justify. A script that no longer serves a purpose adds risk and no benefit.
The website integrations audit guide shows how to trace one customer journey through the analytics and advertising services it touches, which helps you name an owner for each one.
4. Treat tag and experiment access like deploy access
In this incident, the code did not reach the sites through their own releases. According to Report URI, it was written into a field in each site’s Optimizely project. Every place that can publish code to your pages without a deploy deserves the same care as your production deploy:
- tag manager containers and their custom HTML or custom JavaScript tags;
- experimentation and personalization tools with project-level or experiment-level code;
- chat, consent and survey widgets with custom-code fields;
- CMS settings or plugins that add header or footer scripts.
Anyone who can publish code in a tag manager or experimentation tool can run code on your site. Treat that access like deploy access. In this incident, Optimizely says the attacker exploited a flaw in its own signup flow, so tighter access on your side may not have stopped it. It still limits the damage a stolen or misused vendor account can do. Use named accounts with multi-factor authentication, give publish rights only to the people who need them, review API tokens and integrations, and keep a record of who changed what. Ask each vendor whether it logs changes to custom code and whether it can notify you when they happen.
5. Tighten script-src and connect-src
A CSP cannot tell a good file from a bad one on the same host. It can keep the list of hosts short and limit where stolen data can go.
- List exact hosts in
script-src. Avoidhttps:,*and broad wildcards such ashttps://*.vendor.example. - Remove
'unsafe-eval'unless a feature you rely on truly needs it. If it does, record the exception with an owner and a reason. - Use
'strict-dynamic'only with nonces or hashes, and only when you know what your allowed scripts load; supporting browsers then ignore your host list. - Restrict
connect-srcto the endpoints your pages actually call. For the 17 organizations above, this is what kept the data from leaving. - Turn on violation reporting. A
Content-Security-Policy-Report-Onlyheader blocks nothing, but its reports show which scripts and connections your policy would block, and that is better than having no policy at all.
Reporting-Endpoints: csp="https://example.com/csp-reports"
Content-Security-Policy: script-src 'self' https://cdn.vendor.example; connect-src 'self' https://collect.vendor.example; object-src 'none'; base-uri 'none'; frame-ancestors 'self'; report-to cspReplace the example hosts with the ones your inventory from section 3 actually needs. The Content-Security-Policy examples guide walks through nonces, hashes, reporting and a staged rollout, and the security headers check guide covers the headers that belong next to it.
6. Keep tags off payment and login pages, and use SRI where it fits
Per Report URI, the skimmer code targeted cards typed into sites’ own forms; hosted payment iframes were out of its reach. That points to two habits:
- Use your payment provider’s hosted fields or hosted payment page, so card data is typed into a frame or page served by the provider, not into a form that scripts on your page can read.
- Load as few third-party tags as possible on checkout, login and account pages. Analytics and testing rarely need to run where passwords and card numbers are typed.
Subresource Integrity (SRI) lets the browser refuse a file whose hash does not match the integrity attribute in your HTML (W3C Subresource Integrity). It suits pinned library files with a version in the URL. It does not suit vendor snippets that change at the same URL every time someone publishes, because the hash would stop matching after each change.
If you take card payments, PCI DSS v4.0.1 Requirements 6.4.3 and 11.6.1 address this for payment pages: scripts on a payment page must be authorized and checked for integrity, and unauthorized changes to those scripts and to security-impacting HTTP headers, as the browser receives them, must be detected. The PCI Security Standards Council’s announcement of its information supplement on payment page security explains where to find the guidance.
7. Watch what visitors actually receive
The change happened in the vendor’s project, not in the sites’ own code. None of the cited reports mentions a warning to customers when the field changed. Report URI measured how far it had spread by fetching the snippets from outside, as a visitor’s browser would. A vendor change log helps only if someone reads it.
- On a schedule, fetch the scripts your key pages load, from outside your own network, store a hash of each and review every change.
- Send CSP violation reports somewhere a person looks at them, and ask about any new host that shows up.
- For payment pages, consider a tool built to detect changes to the scripts and headers a browser receives.
8. If your site loads Optimizely Web Experimentation
Report URI first saw injected code at 04:21 UTC on 16 November and saw every infected file clean by 23:11 UTC. StepSecurity suggests searching logs back to 04:00 UTC that day. These are observation times; BleepingComputer notes it is unclear how long the vulnerability had been present. A site may have been affected if it loaded an Optimizely Web Experimentation snippet, from the CDN or self-hosted, on 16 November. Optimizely says it has notified all affected customers. The researchers suggest these steps:
- Ask Optimizely which of your projects changed on 16 November, when, and from which accounts.
- Read the Project JavaScript field and experiment code of every project and compare them with the indicators Report URI and StepSecurity published, such as the domains
1688360.ccandwebshell.lol. One loader variant hides the domain in base64, so a plain text search can miss it. - Search CSP violation reports and proxy and DNS logs back to 04:00 UTC on 16 November for those domains. The snippet has since been cleaned, so fetching it today tells you little about 16 November.
- Review and rotate Optimizely users, API tokens and integrations.
- Treat card data entered in your own forms that day as potentially exposed, rotate secrets held in non-HttpOnly cookies, and follow your incident process.
9. How Sitelemetry helps you check and fix this
Sitelemetry turns several steps of this checklist into a short routine you can repeat after every release.
- See your policy in seconds. The free security headers checker shows whether your home page sends an enforced Content-Security-Policy and shows a copy of the policy, so you can check which hosts
script-srcandconnect-srcallow and whether'unsafe-eval'is still there. - Score the risky keywords. The hardening grade, in the free launch readiness snapshot and in every Sitelemetry security audit, gives a CSP fewer points when it allows
'unsafe-inline'or'unsafe-eval'. Remove them and the grade goes up. - Start your script inventory. The Sitelemetry integrations audit reads the page you enter and lists the known analytics, advertising, consent, chat and marketing tags it finds, about 60 vendors in all, including Optimizely when the page loads it from
cdn.optimizely.com. Use that list as the first draft of the inventory in section 3. Every Free workspace includes one audit credit per area, enough for one integrations audit. - Catch insecure loads. Sitelemetry’s free checks flag scripts and other resources that your HTTPS home page loads over plain
http://. - Fix and confirm from your AI assistant. Connect Sitelemetry to ChatGPT, Claude or Cursor, run a security audit from the chat, ask the assistant to draft the header change for your server or CDN, apply it, and run the same audit again to confirm the result.
- Keep it from slipping back. On paid plans, audits can run again automatically, as often as weekly on Starter, daily on Professional and hourly on Enterprise. If a later release drops your CSP, the next report shows it as a finding; if someone adds
'unsafe-eval', the hardening grade drops.
Start with the free checker on your own home page, then work through sections 3 to 8 with your team.
Common questions
What happened in the Optimizely snippet attack?
According to Report URI, attacker code was written into the Project JavaScript field of Optimizely Web Experimentation projects on 16 November 2026 and served inside the normal snippet, mostly from Optimizely’s CDN. Report URI found 188 infected snippets at 178 organizations among the 1,611 it checked. Optimizely says an unauthorized party exploited a flaw in its account signup flow, which it has fixed. How that flaw reached other customers’ projects, and who the attacker is, have not been confirmed.
Why did a Content-Security-Policy not block the injected code?
A CSP allowlist checks where a script comes from, not what it contains. The injected loader arrived inside the Optimizely snippet, from a host the sites’ policies already allowed. Report URI crawled 256 hosts of affected organizations and counted the results by organization: 68 sent no CSP; for 50 the policy let the payload run and send data out; for 17 the payload ran but a tight connect-src kept the data from leaving; and for 24 the policy blocked the payload.
Does Subresource Integrity protect vendor snippets?
Not for snippets that change at the same URL whenever the vendor or your team publishes. SRI needs a fixed hash, so it suits pinned library files with a version in the URL. For changing vendor snippets, rely on access control, a tight CSP and watching what the browser receives.
How can I tell whether my site was affected?
If your site loaded an Optimizely Web Experimentation snippet on 16 November (Report URI saw injected code from 04:21 UTC until every file was clean at 23:11 UTC), ask Optimizely which projects changed and from which accounts, and search CSP reports and proxy and DNS logs for the published indicators. The current snippet has been cleaned, so fetching it today does not show what visitors received.
How can Sitelemetry help me check my site after this incident?
Run the free security headers checker to see whether your home page sends an enforced CSP and which hosts the policy allows. A free account also includes one audit credit in each audit area: the integrations audit lists the known tags your page loads, including Optimizely, and the security audit shows your hardening grade, which drops when a CSP allows 'unsafe-inline' or 'unsafe-eval'. From ChatGPT, Claude or Cursor you can fix the findings and run the same audit again to confirm, and paid plans can repeat the audit on a schedule.
Sources & further reading
- Report URI (Scott Helme): World’s largest brands infected with malware via Optimizelyblog.report-uri.com
- Optimizely status page: Web Experimentation security incidentstatus.optimizely.com
- BleepingComputer: Optimizely supply-chain attack report, with Optimizely’s statementwww.bleepingcomputer.com
- StepSecurity: analysis of the malicious Optimizely-hosted scriptswww.stepsecurity.io
- Hudson Rock (Infostealers): Beyond Optimizely, malicious scripts traced across four web serviceswww.infostealers.com
- Optimizely Web Experimentation docs: Update your site’s Content Security Policies (CSP)docs.optimizely.com
- Internet Archive: the same Optimizely CSP guide as captured on 9 October 2026web.archive.org
- PCI SSC blog: New information supplement on payment page security and preventing e-skimming (10 March 2025)blog.pcisecuritystandards.org
- MDN: CSP script-src directivedeveloper.mozilla.org
- W3C: Subresource Integritywww.w3.org
Prepared by the Sitelemetry editorial team. Explore the linked sources for further detail.



