Skip to content

Adding a script means trusting who controls it

Third party JavaScript security matters for Shopify stores and other sites. Here is how I would review apps, scripts, access and vendor risk.

Updated 3 min read
A script is also a chain of trust. Drawing of a storefront connected by a chain to a code window and shield.

Adapted from my LinkedIn post originally shared on 2026-11-18. This journal version was prepared on 27 November 2026.

A useful app can bring a lot more than a new feature into your store. It can also bring code controlled by another company. That is the part of third party JavaScript security I think store owners need to understand.

In November 2026, an attacker exploited a flaw in Optimizely Web Experimentation and inserted malicious JavaScript into customer projects. Researchers found affected scripts associated with 178 organizations in the snippets they examined. Optimizely’s incident report describes how customer projects were altered. The researcher’s count is a finding from its investigation, not a claim that every visitor or customer lost data.

The previous month, Sansec documented a separate Shopify app supply chain attack that redirected shoppers to fake checkout pages. The two incidents were different, but both made me think about Shopify app security in the same way: who can change the code that runs in front of your customers?

Start with a list of what is installed

Open your app list and identify what each app does, who owns it, and whether the store still needs it. Pay extra attention to anything that changes the theme, touches customer data, or affects the path to checkout.

Do not remove an app just because it has broad access without first understanding what the business depends on. Review its permissions, check its documentation, and make a removal plan with whoever manages the store.

Look beyond the app list

Uninstalling an app does not always mean every theme change or script it added disappears. Ask a developer to review theme files, custom code, pixels, and tag manager entries. Check with the app provider about its uninstall process before deleting unfamiliar code.

If you use Optimizely Web Experimentation, ask your team or provider which projects were affected and review project and experiment code against the people and changes you recognize. An incident in a service does not automatically mean your own store was affected.

Review who still has access

A former agency or freelancer may have finished the work months ago. Check staff and collaborator accounts, app ownership, theme access, and connected services. Remove access that is no longer needed and turn on two-factor authentication for people who retain access. Make sure a current owner can administer each service before you revoke anything.

Ask the vendor before the next incident

Before installing another app, ask what access it needs, why it needs it, and how the provider will notify customers if something goes wrong. Keep an inventory you can use when an alert arrives.

I am not suggesting every app is dangerous. The useful question is whether you can account for the software and people your store depends on, and whether you would know where to start if one of them had a problem.

If you suspect a real compromise

Treat unexpected redirects or unfamiliar scripts as an incident, not just an uninstall task. Record what you observed and when, contact your platform and affected providers, and involve a qualified developer or incident responder. Preserve the evidence they need before making changes where practical, and follow the provider’s guidance on customer and payment exposure.

A clean app list is a useful start, but it cannot by itself prove that every script is safe. Make the inventory and review a recurring part of store maintenance.

For more on the merchant side of the work, see what Shopify merchants actually need from SEO.

Let’s talk about a product problem.

Email is the fastest route. I answer everything that’s a real question.