On 16 November, attackers slipped malicious code into a website testing tool called Optimizely, and it loaded on the sites of 178 organisations, including Zoom, the BBC, CNN, Salesforce and HSBC. None of those companies changed a line of their own code. The script they trusted simply started doing something else, including running code designed to skim card details typed into web pages. Your store probably doesn't use Optimizely. But if it runs a chat widget, a reviews app, a heatmap tool or an analytics pixel, it relies on exactly the same kind of trust. The fix for your own store is mostly deleting things, and it fits in one afternoon.
What happened, in plain terms
Optimizely lets businesses run A/B tests and personalise pages. To use it, a site loads a JavaScript snippet from Optimizely's servers, and customers can add their own custom code to it. According to BleepingComputer's report, Optimizely confirmed that an attacker exploited a vulnerability in its account signup flow to add malicious JavaScript to some customer projects.
Security researcher Scott Helme's team found 188 infected scripts belonging to 178 organisations, out of 1,611 Optimizely scripts they analysed. The injected code pulled in a second script that could:
Skim payment cards: search for card numbers, expiry dates and security codes entered on a page and send them to the attackers.
Swap crypto wallet addresses so payments went to the attackers.
Collect cookies, page URLs and screenshots, and try to load exploits against vulnerable iPhones and iPads.
Optimizely said it blocked the vulnerable path, removed the injected code, ended sessions, revoked tokens and notified affected customers. Inc42's breakdown adds the uncomfortable point for every site owner: visitors didn't have to click anything suspicious. Their browsers loaded the malicious code just by opening a normal page.
Why small stores should care
Every third-party script on your site runs with the same power as your own code. It can read what customers type, change what they see, and send data anywhere. When you install a reviews app or paste a tracking pixel, you're trusting that company's security as much as your own.
The payment card industry has been warning about this for a while. The PCI Security Standards Council's guidance on payment page security and e-skimming says these attacks "have increased significantly" as businesses rely more on external scripts, and that scripts running in customers' browsers are "now a significant target". The current card security standard, PCI DSS v4.x, has two requirements aimed squarely at this: 6.4.3, that payment page scripts are authorised and checked for integrity, and 11.6.1, that payment pages are monitored for tampering.
The one-afternoon script checklist
1. Make a list of every script your store loads
Open your home page, a product page, the cart and the checkout in Chrome. Right-click, choose Inspect, open the Network tab, filter by "JS" and reload. Write down every domain that isn't yours. For each, note three things: what it does, who added it, and when it was last useful. If nobody on your team knows what a script is for, that's your answer.
2. Remove anything you can't justify
Old A/B testing tools from a campaign last year, a chat widget you replaced, three different analytics pixels doing the same job. Each one is a door. Uninstall the app properly, then check your theme for any leftover snippet. If you're on Shopify, this links up with the app audit from the earlier piece on Shopify script tags stopping on 1 March 2027; do both in one sitting.
3. Keep card entry off your own pages where you can
The fewer scripts that load on the page where a customer types card details, the less a compromised script can see. If your payment gateway offers a hosted payment page or a secure embedded field that runs on the gateway's side, use it. Ask your gateway or developer which pages on your site actually handle card entry, and keep marketing scripts off them.
4. Lock down the vendor accounts behind your scripts
This attack went through the vendor's systems, but the same damage is possible if someone gets into your account on a tool that lets you add custom code. For every such tool: turn on two-factor login, remove ex-employees and old agencies, and check who can edit custom code fields.
5. Ask your developer about tamper alerts
The PCI guidance covers managing scripts and security-related HTTP headers so unauthorised changes are caught. You don't need to read the standard yourself. Ask your developer or platform one question: "If a script on our checkout changes tomorrow, how would we find out?" If the answer is "we wouldn't", that's the gap to close.
What it costs to skip this
The hidden cost isn't the hour of auditing. It's what happens if your store is the one quietly leaking card details. You could face chargebacks, a conversation with your payment gateway about compliance, and a trust problem with customers that no discount code fixes. Big brands can absorb an incident like the Optimizely one. A small D2C store often can't.
The good news is that this checklist mostly involves deleting things. Fewer scripts usually means a faster site too. If you want a wider security baseline for the business beyond the store, this small business security checklist is a good companion. Put a reminder in your calendar to repeat the script list every quarter, and every time someone says "let's just add one more pixel".



