Thoughts

Why Does It Feel Like The Web is Under Attack?

Author

Joe Kepley

Categories:

Joe Kepley sitting at his desk.

The latest exploits showed how one trusted script can expose thousands of sites. The fix, Content Security Policy, has existed for years. It's time for marketing, IT and vendors to take it seriously.

November 2026 was a rough month in the information security space. We saw multiple outages and high profile exploits that affected a lot of major sites, including a lot of brands with great track records that we would assume are “too big to fail”. 

What’s behind this? Unfortunately the speed and efficiency gains we’ve seen with AI-assisted coding also applies to AI-assisted hacking. The Common Vulnerabilities and Exposures database has grown every year for the last decade, but the number of vulnerabilities logged in 2026 is actually more than twice what was logged in 2025, and we’re not even done with the year yet. If nothing feels safe right now in IT, that’s because it’s not.

 

One of the more concerning breaches involved Optimizely Web Experimentation. Like many marketing services, Opti Web Experimentation helps marketers by running code on their website. That code is delivered via a script tag that you add to your site, which delivers the code to your page. 

This is very convenient. I can make a small change to my site by adding this script, and then Opti can deliver their code and even make updates over time without me needing to do anything else. Unfortunately what happened was that an attacker was able to add their own code to Opti’s delivery system, which then allowed them to add their own script tag and deliver exploit code to thousands of sites that use the tool, including many major brands. Opti responded quickly, but any exposure is both an IT security risk and a PR mess to clean up.

The challenge with the modern web is that a rich digital experience is built on lots of small pieces working together. The Opti code in question was a small component in how many brands delivered their site. That code, in turn, incorporates a lot of pieces from more foundational projects. Every site can probably identify dozens or even hundreds of these independent code projects in their page. Unless these dependencies are managed properly, any one of them can become an attack vector.


We’ve Had the Fix for a Long Time

This might sound like an unsolvable problem, but the solution has actually been built into our browsers for years. All modern browsers include a feature called Content Security Policy (CSP). 

Content Security Policy allows web developers to add a header to their pages that is delivered to the web browser along with the page. This header contains a detailed policy that states what each piece of the web page should and shouldn’t be allowed to do for each domain that it connects to. This includes rules for content, iframes, CSS, images, JavaScript, and pretty much anything else you can think of. It even allows for validating that the code being downloaded is the code the developers expected via hash values (using subresource integrity). 

This allows the site’s maintainers to either ensure that all of these pieces of code are exactly the code they’re expecting, or failing that, limited to a set of capabilities that only allows them to do what they’re expected to do. 

This latest exploit didn’t affect every site it was delivered to. Some had CSPs that prevented the exploit from downloading its payload because it wasn’t expected. Some even had CSPs in place that prevented the exploit code from being delivered at all.

It’s Time to Get Serious About CSP

So why isn’t everyone using it? For the same reason that people used to leave a car key in their sun visor and a house key in the potted plant on the front porch: security is inconvenient. 

Let’s think about an example website. It might have all of these available on the page: 

  • Local scripts
  • HubSpot forms
  • Opti Web Experimentation
  • Google Analytics
  • Facebook tools
  • An AI chatbot
  • Consent Management/Cookie banner system
  • Google Tag Manager, so they can inject anything else they might think of later

You could certainly add rules for all of these to your CSP, but none of these services publish any sort of schedule for when they update their scripts, because they’d prefer not to have to deal with it every time they fix a bug or add a new feature. And because of that, adding a CSP rule might break any of these things with no notice. Ultimately, vendors are hesitant to make changes because it adds friction, while marketing teams avoid pushing for security controls since their software providers make doing so very complicated. So IT is forced to add a rule like “Web Experimentation can do whatever it wants” and goes off to the bar to drink a pint while wearing a thousand yard stare.

So what’s the alternative? Well, it would certainly be possible for SaaS vendors to publish recommended CSP rules along with their scripts when they provide installation instructions. They could also support multiple versions of their scripts with known hashes and expiration dates. This would allow their users to plan and regularly schedule updates that are aligned with CSP changes, so they could use the software and still maintain stringent security. 

This isn’t happening right now because their paying users aren’t demanding it. This needs to change. This latest round of breaches should be a wakeup call that we as users should demand better. Because while we’ve been guarding the front door, the truth is that the call might be coming from inside the house. True, it’s not always fun to maintain a stringent content security policy. But it’s a lot more fun than explaining to all your customers what you’ve exposed them to.

None of this is fun work. It means getting marketing and IT in the same room and agreeing on what every script on your site is actually allowed to do. That's a conversation we have with clients all the time, and we're happy to help you start it.