Who Can Turn Off a Third-Party Script on Your Site?

· by Andrei

Who can switch off the testing script on your product pages without taking checkout down with it? If the answer is “our agency, probably,” find out who has access while there’s still time to ask.

On November 16, malicious JavaScript was added to targeted Optimizely Web Experimentation projects. In its November 19 advisory, Optimizely said it blocked delivery, removed the code and closed the vulnerability within three hours of detecting it. It put the impact at fewer than 5% of its customers and said it contacted every Web Experimentation customer about whether they were affected. If you use that product, start with the notice for your account.


Find out where the script comes from

Suppose you sell hiking gear online. Marketing runs an experiment on product pages to try a different size guide. Your payment provider supplies the card form at checkout. Both can bring code in from outside your site. Turning off the experiment should bring back the original size guide. Losing the payment form could stop orders entirely.

Open a product page and checkout in a fresh browser session. In the browser’s developer tools, look at the Network tab to see what the page requests. Check again after accepting consent if your site loads optional tags only after that step. Then trace each script back to its source. A tag manager can load code you’ll never find by searching the WordPress theme. The script host in the Network tab tells you where the file came from. The tag manager, plugin or theme tells you where to turn it off.

Script Where it loads from Pages Who can disable it What happens next
Size guide experiment Tag manager Product pages in the test Marketing lead with publish access Original guide returns
Card form Payment plugin Checkout Store developer and payment provider Use an approved alternative or pause checkout

Write down the actual person and where they can make the change. If only a contractor can publish the tag manager container, add their contact details and find out who can step in when they’re away. OWASP’s guide to third-party JavaScript explains the access these scripts can have. On a site with several people adding integrations, I’d keep this inventory with the website handover and update it when something new goes live.


Check what the vendor says about your account

Save the notice, the project identifiers and the current tag settings so your team can see what changed and when. Then match the vendor’s scope to your own pages. If the affected project supplied the size guide experiment, you know which tag to look for and what visitors should see after you pause it. If the notice involves the payment form or checkout, get your payment provider and incident lead involved immediately. They can help decide whether to isolate checkout or use an approved fallback. A payment integration can be affected even when it’s critical to sales.

Give the person handling site support the vendor notice, the pages involved and the time the change was made. That’s enough to start checking exposure without treating every slow page or failed checkout as evidence of the same incident.


See what the browser loads after the change

Once the tag is disabled and the change is published, open a fresh browser session and look for its requests again. Check several affected pages and use the same consent and navigation steps that originally loaded the tag. If you still see it, check whether the site or its content delivery network is serving a cached page, or whether another plugin loads a second copy.

In staging, run the store’s full checkout with a test product and the payment provider’s test mode. Verify that the order reaches the store and that the confirmation arrives. On the live site, confirm the original size guide works, the removed script stays absent and checkout shows the expected payment option. Save the evidence where the next person can find it.

Pick one optional product-page tag today. Ask its owner where they’d disable it, then test in staging what the customer would see without it. If nobody can find the switch, that’s the first thing to fix.

← Back to blog