Research & Development The Sniffer

Optimizely Script Attack: Why Zero-Dependency Builds Remove the Vector

The Optimizely incident of November 2026 exposed a structural weakness in how third-party scripts are trusted. In this article on third-party script attacks, The Sniffer explains how the attack worked, why Content Security Policy stopped only 15 percent of affected organizations, what the Philippine 72-hour breach notification clock requires, and why a zero-dependency build removes the runtime vector that makes the attack possible.

The Sniffer Insights: Third-Party Script Attacks and the Optimizely Incident cover photo
Why trusted vendor scripts are a build-time decision

In Brief

  • The attack: On November 16, 2026, an attacker wrote malicious JavaScript into the Project JavaScript field of customer projects on Optimizely Web Experimentation. Optimizely's own CDN served the payload to visitors of 178 organizations for up to 17 hours.1
  • The delivery was trusted by default: The malicious file came from cdn.optimizely.com with Optimizely's certificate, so every affected browser treated the payload as first-party code.
  • CSP stopped only 15 percent: Of 159 organizations whose Content Security Policies were classified, only 24 would have blocked the payload. The malicious code arrived from a domain already on every Optimizely customer's allowlist.5
  • Third major compromise since August 2026: The incident follows the Plerdy analytics and Polymarket compromises and shares the same pattern with the October 2026 Shopify app hijack and the 2024 polyfill.io domain sale.5
  • The Philippine consequence: Under RA 10173, a checkout-page skimmer triggers a 72-hour notification obligation to the National Privacy Commission, and the clock starts at discovery.9
  • The build alternative: A zero-dependency build removes the runtime script vector rather than monitoring it. Neither posture is a guarantee of security, and neither substitutes for an independent audit.

Direct Answer

Third-party script attacks succeed because scripts execute with first-party privileges. An attacker who can write to a vendor's configuration field inherits the trust of every site that loads the vendor's snippet. The mitigation is a build specification that removes the runtime dependency, not a firewall or a stricter Content Security Policy alone.

How the Optimizely attack actually worked

Optimizely Web Experimentation lets marketing and product teams change page behavior without an engineering release. Customers embed a JavaScript snippet on their pages, and the browser loads a project-specific file from Optimizely's CDN. That file contains Optimizely's runtime code and customer-authored content: experiment variations, audience logic, and an optional Project JavaScript block that runs on every page where the snippet loads.

The attacker did not modify Optimizely's platform code. The attacker used a flaw in the account signup flow to gain write access to customer projects, then wrote a loader into the Project JavaScript field. Everything else in each customer's snippet stayed intact. Because the file still came from cdn.optimizely.com with Optimizely's certificate, every affected browser treated the payload as trusted first-party code.3

The delivery mechanism is the same one that makes the platform useful. The architecture exists so that marketing teams can change page behavior without a release. That same design means anyone with write access to a project can execute arbitrary JavaScript in the origin of every site that embeds the snippet.

The payload was rebuilt 26 times over the course of the day. The initial script swapped cryptocurrency wallet addresses. A card skimmer was added at 13:43 UTC, targeting card numbers, expiry dates, and CVV codes typed into a site's own payment forms. Card fields inside payment provider iframes such as Stripe Elements and Adyen were out of its reach. Card fields on the merchant's own page were not. On iPhones and iPads running iOS 18.6 or older, affected pages reloaded every 60 seconds and loaded the Coruna and DarkSword exploit kits.7

Report URI examined 1,611 Optimizely snippets and found 188 carrying the malware, belonging to 178 organizations. The firm believes the number of victims is higher because the team only examined the snippets it managed to find in time. Banking and finance accounted for the largest affected sector with 32 organizations, followed by technology with 23. The named list includes Zoom, the BBC, CNN, Salesforce, GitLab, IKEA, HSBC, Equifax, Air France-KLM, Ledger, and Peacock. Staging and preview sites were infected at eight organizations because they shared the production Optimizely project.2

The confirmed cryptocurrency haul was modest, about $7,040 to $7,150 by 19:25 UTC. The total volume of stolen payment card details and browser cookies remains unknown.6

Why Content Security Policy failed for 85 percent of affected organizations

Content Security Policy is the browser mechanism that tells a page which scripts are allowed to execute and which endpoints those scripts may contact. It is the standard defense against injected third-party code.

Of 159 organizations whose CSPs Report URI classified, only 24, or 15 percent, would have blocked the Optimizely payload. The reason is configuration. A CSP that restricts script-src to trusted domains does not stop a payload that arrives from a trusted domain. The malicious code came from cdn.optimizely.com, which was already on the allowlist of every affected site that used Optimizely.

Two directives made the difference. strict-dynamic permits any script loaded by an already-trusted script to execute, which is exactly the relationship between the Optimizely loader and the malicious payload. unsafe-eval permits dynamic code execution from strings, which the payload relied on to rebuild itself during the day.

The Italian CSIRT assessment is direct. A properly configured CSP, with strict restrictions on script-src, connect-src, and frame-src, would have prevented or limited some phases of the attack. The site owner chose a configuration at build time. The configuration determined whether the attack succeeded.1

The attack is the third major third-party script compromise since August 2026

The Optimizely incident is not isolated. It is the third major third-party JavaScript compromise reported since late August 2026, following the Plerdy analytics and Polymarket incidents. The pattern is concentration risk: a single shared script, CDN, or registry becomes a single point of failure for thousands of downstream parties.5

The precedents are documented. In June 2024, the polyfill.io domain was sold and began injecting redirect malware into more than 100,000 websites that still loaded its script. In late July 2026, Adform's tracking script was altered to swap cryptocurrency addresses on customer sites. In October 2026, trusted Shopify apps including Hulk Product Options, Swym Wishlist Plus, and Selleasy were turned into phishing funnels that redirected shoppers to lookalike checkout pages.8

The Shopify app attack used the same evasion logic. The malicious script fired only when a real shopper clicked Checkout, so synthetic scanners that crawled store pages never triggered the redirect. It set a session storage flag after one redirect, which made later retests by merchants and support staff look normal. The unchanged app file passed integrity checks, while the trusted Shopify CDN and vendor API already appeared on most stores' CSP allowlists.

The common thread is that the vendor is not the attacker. The vendor is the delivery mechanism. The attacker compromises a configuration field, a settings API, or a domain, and the vendor's own infrastructure distributes the payload with a valid certificate and a trusted reputation.

The concentration risk, in four categories of third-party script

Each of these incidents exploited the same trust relationship. The category differs, the mechanism does not.

Experimentation and A/B testing

Optimizely, November 2026

An attacker exploited a signup-flow vulnerability to write malicious JavaScript into the Project JavaScript field of 178 customer projects. The vendor's own CDN served the payload with a valid certificate for up to 17 hours.

E-commerce apps

Shopify app hijack, October 2026

Hulk Product Options, Swym Wishlist Plus, and Selleasy were altered to redirect shoppers to lookalike checkout pages. The malicious code fired only when a real shopper clicked Checkout, evading synthetic scanners.

Analytics and tracking

Adform, July 2026; Plerdy, August 2026

Adform's tracking script was altered to swap cryptocurrency addresses on customer sites. The Plerdy incident followed within weeks, using a similar technique against analytics scripts already on customer allowlists.

CDN and polyfills

polyfill.io, June 2024

The domain was sold to a new owner, which began injecting redirect malware into more than 100,000 websites that still loaded its script. The script had been on customer pages for years with no incident.

The Philippine regulatory consequence is a 72-hour clock

The incident reports are not written for Philippine businesses. The regulatory consequence is.

Under Republic Act No. 10173, the Data Privacy Act of 2012, a personal information controller must notify the National Privacy Commission within 72 hours of discovering a personal data breach that is likely to cause serious harm to affected data subjects. The controller then submits a full report within five days. The NPC clarified the submission procedure through the Data Breach Notification Management System under Advisory No. 2026-02.11

A client-side skimmer that captures card data and session cookies from a checkout page is a personal data breach. The site owner is the personal information controller. The vendor whose script was compromised is a personal information processor at best. The notification obligation sits with the Philippine entity, not with the vendor.

The obligation is triggered by discovery. The technical problem is whether the site would discover the compromise at all. A payload that runs only in the visitor's browser, only when a real checkout is initiated, leaves no server-side log entry. The site owner has no evidence until a customer reports a fraudulent charge or the vendor publishes an advisory. A retail site in the Philippines that carries a third-party script on its checkout page has three problems at once: the script is a compromise vector, the compromise is invisible in server logs, and the notification clock starts the moment the site learns about it, not the moment the incident began.

The zero-dependency build removes the runtime script vector

The remediation set that incident responders recommend is a set of mitigations. Audit third-party scripts. Enforce a restrictive CSP. Isolate payment fields in a provider iframe. Add third-party script governance to vendor risk. Those steps reduce the probability of compromise. They do not eliminate the dependency that makes the compromise possible.

A different build specification removes the dependency.

Wholesale Dito Store, operated by Clickerwayne Zelle Solutions Inc., is built as a deterministic, private-by-design platform that does not fetch executable configuration from a third-party API at runtime. Product pages are generated from a verified catalog with signed price manifests rather than assembled from vendor-provided runtime configuration. The Project JavaScript field that was the attack vector in the Optimizely incident has no equivalent in the architecture, because there is no vendor-supplied runtime configuration layer to write to.12

The checkout architecture is proprietary and in-house. NØFEE Direct Settlement is designed to facilitate direct bank-to-bank settlement rather than routing through a third-party payment gateway. The design goal is to keep the checkout path independent of a payment processor's client-side script. Card fields on the merchant's own page were the target of the Optimizely skimmer. A checkout that does not assemble its form from a third-party script is not exposed to a third-party script compromise in the same way. This is a build design statement, not a claim of regulatory exemption, and any payment flow in the Philippines remains subject to applicable Bangko Sentral ng Pilipinas rules under RA 11127 for operators of payment systems.10

The provenance layer is cryptographic. Every price manifest published on the site carries an ECDSA P-256 signature over the price data, a timestamp, and a revocation reference. Anyone can download a manifest and verify that it was issued by the company and has not been altered. A price that cannot be altered without invalidating a signature is a price that cannot be swapped by a compromised script.

Clickerwayne Zelle, the engineering firm behind Wholesale Dito Store, writes custom code and does not build on WordPress, page builders, or frameworks that pull third-party runtime configuration into a client's pages. That is a deliberate build decision. WordPress and page builders reach for third-party scripts in predictable places: analytics, personalization, A/B testing, chat widgets, and checkout extensions. Each of those scripts is a trust boundary. A custom build that does not load them does not carry their risk. The services are organized around the same logic: Build covers custom web development, progressive web apps, internal tools, and managed website care. Optimize covers technical SEO and AI readiness. Verify covers pre-deployment staging verification, where the client can run Google PageSpeed and the company's Ask W Auditor against a staging server before the site goes live.13

The distinction between a mitigated dependency and an eliminated dependency matters for how a buyer reads a vendor's security posture. A mitigated dependency is a risk that is being managed. An eliminated dependency is a risk that does not exist in the runtime path. Neither posture is a guarantee of security, and neither substitutes for an independent audit. What differs is where the failure can occur.

What a buyer should ask before integrating a vendor script

The incident reports translate into five questions a Philippine business can ask any vendor, and any web development partner, before a script is added to a checkout page.

1

Can the vendor alter executable code through a configuration field? If the answer is yes, the vendor's own interface is an attack surface. Optimizely's Project JavaScript field was the vector.

2

Would the CSP block a payload from the vendor's own domain? If the vendor domain is on the allowlist and the CSP permits unsafe-eval or strict-dynamic, the answer is no. 85 percent of classified organizations in the incident were in that position.

3

Are checkout fields served from a payment provider iframe or assembled by a third-party script? Fields inside Stripe Elements or Adyen iframes were out of reach of the Optimizely skimmer. Fields on the merchant's own page were not.

4

Does the site detect a client-side compromise without a customer complaint? A payload that runs only in the visitor's browser, only when a real checkout is initiated, leaves no server-side log entry.

5

Would the site be able to meet the 72-hour notification requirement under RA 10173 if a compromise were suspected? The obligation begins at discovery. A site that would not discover the compromise until a customer reports a fraudulent charge has effectively extended the incident window beyond the regulatory clock.

A site that answers the first question yes and the other four no has the same exposure as the 178 organizations in the incident. A site built on a zero-dependency architecture has a different answer to the first question, because there is no vendor configuration field to write to.

The verdict is conditional on the trust boundary

The narrow claim holds. A site that loads third-party scripts from a trusted CDN, permits runtime configuration to become executable code, and lacks a restrictive CSP is structurally exposed to a client-side supply chain attack. The Optimizely incident is a measured demonstration at scale: 178 organizations, 17 hours of delivery, 85 percent of classified CSPs unable to block the payload.

The broad claim does not hold. Third-party scripts are not inherently unsafe, and Optimizely is not uniquely vulnerable. The failure is a trust-boundary failure. A site that treats every third-party dependency as a first-party risk, constrains what that dependency can execute, and monitors what it actually delivers can integrate the same vendors without the same exposure.

The commercial consequence is that the build specification becomes the security document. A client who specifies a restrictive CSP, payment provider iframes, and third-party script governance gets a site that can survive a vendor compromise. A client who specifies a zero-dependency architecture, custom code, and server-rendered output gets a site whose runtime script vector has been removed rather than mitigated.

What was not measured

No independent security audit of Wholesale Dito Store or Clickerwayne Zelle is reported. The build characteristics described in the previous section are first-party engineering statements drawn from the properties' own published documentation. No penetration test, CSP audit, or incident-response exercise is claimed, and the security posture should not be treated as verified until an independent audit is performed.

The total volume of stolen payment card data and session cookies in the Optimizely incident is unknown. The confirmed cryptocurrency loss was approximately $7,040 to $7,150, but the card and cookie exposure is not quantified in the published reports.

The 15 percent CSP effectiveness figure applies to the 159 organizations Report URI classified. It is not a population estimate for all Optimizely customers or for the Philippine market.

No Philippine-specific incident data is reported. The RA 10173 notification obligation is a regulatory requirement, not a measured enforcement outcome in this incident.

Sources

  1. 1. ACN CSIRT-ITA. "Supply Chain Attack: distribuzione di codice malevolo tramite Optimizely Web Experimentation." November 18, 2026. Distribution of malicious JavaScript to visitors of at least 178 organizations through snippets loaded from Optimizely's official CDN; CSP directive analysis of unsafe-eval and strict-dynamic. acn.gov.it
  2. 2. Help Net Security. "Malware spread through Optimizely hits 178 organizations, including BBC, CNN and Zoom." November 17, 2026. Optimizely confirmation, Report URI findings, payload capabilities, sector distribution, and attack timeline. helpnetsecurity.com
  3. 3. BleepingComputer. "Optimizely hack infected CNN, Fox News, BBC, Salesforce sites with malware." November 16, 2026. Optimizely statement on the signup-flow vulnerability, token revocation, and Cloudflare blocking; urlscan.io confirmation of affected sites. bleepingcomputer.com
  4. 4. The Hacker News. "Hijacked Optimizely Scripts Served Card Skimmer and iOS Exploit Kits to CNN, BBC and Zoom Visitors." November 17, 2026. Three loader versions, base64 obfuscation, self-hosted snippet impact, and the Smartsheet re-infection. thehackernews.com
  5. 5. Cloud Security Alliance. "OPTIMJACK: Compromised Optimizely Scripts and Client-Side Supply Chain Risk." November 18, 2026. CSP effectiveness measurement of 15 percent, strict-dynamic and unsafe-eval weakening, polyfill.io and Adform precedents, and third-party script governance recommendation. labs.cloudsecurityalliance.org
  6. 6. Critical Start. "OPTIMJACK: Optimizely Malicious JavaScript." November 17, 2026. Sector distribution of 32 banking and finance organizations and 23 technology organizations; 26 payload builds; $7,040 confirmed crypto theft. criticalstart.com
  7. 7. ScruteX. "Optimizely Supply-Chain Attack (OPTIMJACK): Full Analysis, IOCs and Victim List." November 18, 2026. Attack vector in the Experimentation account signup flow, Project JavaScript field, 17-hour delivery window, 26 payload builds, CSP implications, and staging-site infections. scrutex.ai
  8. 8. PC Risk. "Trusted Shopify Apps Turned Into Phishing Funnels." October 2026. HulkApps, Swym Wishlist Plus, and Selleasy checkout hijack; session-storage evasion flag; synthetic-scanner evasion; trusted-CDN allowlist abuse. pcrisk.com
  9. 9. Republic Act No. 10173, Data Privacy Act of 2012. Official Gazette of the Republic of the Philippines, August 15, 2012. Personal information controller and processor obligations; breach notification requirements. officialgazette.gov.ph
  10. 10. Republic Act No. 11127, National Payment Systems Act. Official Gazette of the Republic of the Philippines, October 30, 2018. Regulation of operators of payment systems by the Bangko Sentral ng Pilipinas. officialgazette.gov.ph
  11. 11. National Privacy Commission. Advisory No. 2026-02, "Clarification on the Submission of Personal Data Breach Notification through Data Breach Notification Management System." May 11, 2026. privacy.gov.ph
  12. 12. Wholesale Dito Store. "Why We Built a Zero-Dependency Stack: Engineering Decisions Explained." September 30, 2026. First-party engineering record of the zero-dependency stack, signed price manifests, provenance directory, and the 2018 third-party script compromise that prompted the build. wholesaledito.store
  13. 13. Wholesale Dito Store. "Clickerwayne Zelle Launch: 12 Tech Services and AI Readiness." October 2026. First-party record describing the Build, Optimize, and Verify service categories, custom web development, progressive web apps, internal tools, technical SEO, AI readiness audits, and pre-deployment staging verification. wholesaledito.store

No independent security audit was conducted for this article. No study was run by The Sniffer. Every incident figure is attributed to the organization that published it. First-party build statements are labelled as first-party throughout.