Websites

Black October: why WordPress sites are an easy target

AI now finds security holes faster than most can patch them, and WordPress is the biggest target. We look at what happened during Black October, why WordPress and older CMSs are so exposed, and what you should do now.

Black October: why WordPress sites are an easy target

Over four days in October, two critical PHP vulnerabilities came to light, millions of attack attempts were recorded and public websites in several countries were taken offline as a precaution. The security community calls it Black October. The common thread is artificial intelligence, which now finds weaknesses faster than most can patch them.

If your website runs on WordPress or an older CMS, this is no longer a theoretical problem. Black October showed how vulnerable the old way of building websites has become, and why more and more businesses should consider renewing their website.

What was Black October?

Black October wasn't a single attack, but a series of separate incidents in quick succession. The peak was 19 to 22 October, but the name now covers the whole month.

What worries experts most is the speed. AI appears on both sides: researchers use it to find the flaws, attackers use it to exploit them.

The week it moved fast

  1. The first attemptsAmazon spots attempts to exploit the PHP flaws, four days before they are disclosed.
  2. The warningPHP announces an emergency security update for two critical flaws.
  3. The fix arrivesPHP releases emergency updates, and CERT-EU, ENISA and the NSA urge everyone to update immediately. Public websites in Finland and the Netherlands are taken offline. The same day, Microsoft reveals that a China-linked group has used the AI tool ARTEX against more than 2,250 Microsoft 365 environments.
  4. Millions of attemptsCloudflare has recorded millions of attack attempts. Banks, airlines and railways in Japan suspend parts of their online services.
  5. Another way inPHP warns of a new way to run code on the server, two days after the emergency updates.
  6. Exploitation confirmedThe US agency CISA adds the flaws to its list of actively exploited vulnerabilities.

Sources: Amazon, Cloudflare, CERT-EU, ENISA, Microsoft and CISA, via Cybernews, The Next Web, Fortune and Fox News

For websites, PHP2Shell is the big story. But it didn't come out of nowhere.

AI makes finding flaws cheap

WordPress got a foretaste back in July. Two flaws in WordPress itself, dubbed wp2shell, let an anonymous attacker take full control of a website without logging in. The attack worked on a completely standard installation without a single plugin.

  • The researcher who found the flaws used OpenAI's GPT-5.6 and needed about ten hours.
  • Another security firm reproduced the flaw with AI in minutes.
  • Working exploit code was out within hours, where it used to take a day.
  • Attacks began just hours after the fix was released.

PHP2Shell was also found with AI. Security firm Wiz used models from Google and OpenAI, among others, and reported the flaws to PHP in August.

Professor Junfeng Yang of Columbia University explains the imbalance to Fortune: AI makes old flaws cheaper to find and exploit, while testing and rolling out fixes still happens at human speed.

PHP2Shell: when the foundations give way

PHP2Shell is two critical vulnerabilities in PHP itself, the programming language behind an estimated 70 per cent of all websites and the whole of WordPress. Both are rated 9.2 out of 10 for severity and let an attacker run their own code on the server without logging in.

The flaw lies in the PHP engine, not in a specific application. A website can therefore be vulnerable even if its own code is perfectly sound. WordPress.org wrote on 21 October that the flaws affect all servers running PHP and that no WordPress update was needed. Updating WordPress didn't help, in other words. It was the server that needed updating.

The fixes came on 21 October in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Then things moved fast.

PHP2Shell attack attempts on Cloudflare's network

Angrepsforsøk mot PHP2Shell i Cloudflares nettverkTusenvis av forsøk de ti timene før hullene ble kjent, titusenvis 45 minutter etter, hundretusenvis etter to timer og millioner samme kveld.1 00010 000100 0001 mill.Tusenvis10 t før10 t førTitusenvis45 min etter45 minHundretusenvis2 t etter2 tMillionerSamme kveldKveldOFFENTLIGGJORT 21.10
Logarithmic scale. Cloudflare gave orders of magnitude, not exact figures. Dashed bar: before the flaws were disclosed. Source: Matthew Prince, Cloudflare, 21/10/2026

Many chose to shut down rather than risk a silent breach. Finland's state IT centre took public online services offline, and in Japan banks, airlines and railways suspended parts of their online services.

Why WordPress is an easy target

WordPress is the world's largest publishing platform, and that is exactly the problem. According to W3Techs, WordPress runs 39.6 per cent of all websites. When a single flaw can be exploited on tens of millions of websites at once, automating the attack pays off. With AI, that now takes hours.

A WordPress site also has plenty of points of attack. It sits on three layers that each need to be kept up to date, often by different parties.

Three layers that all need updating

03

Extensions

Plugins and themes

Updated by
You, the website owner
Example
91% of new vulnerabilities in 2025
02

The core

WordPress itself

Updated by
WordPress, often automatically
Example
wp2shell, July 2026
01

The server

PHP and the web server

Updated by
Your hosting provider or whoever runs the server
Example
PHP2Shell, October 2026

A hole in one layer isn't fixed by updating another. PHP2Shell wasn't solved by a WordPress update.

Plugins are the weakest link

Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, up 42 per cent on the year before. 91 per cent were in plugins and 9 per cent in themes, while the WordPress core itself had just six. The number of easily exploitable vulnerabilities rose by 113 per cent.

46 per cent of the vulnerabilities had no fix when they became known. Updating doesn't help then, because there's nothing to update to. Many plugins are simply abandoned: in 2024, 1,614 plugins and themes were removed from the official WordPress directory because security holes weren't fixed.

The WordPress ecosystem in 2025

11 334new vulnerabilities, 42% more than the year before
12 %of WordPress attacks were stopped by standard hosting defences
5 tmedian time to first attack on the most serious holes

Where the vulnerabilities were

Plugins 91%Themes 9%WordPress core: 6 of 11,334

Source: Patchstack, State of WordPress Security in 2026

Your hosting won't save you

Many people assume their hosting provider takes care of security. In Patchstack's test, standard hosting defences stopped just 12 per cent of attacks targeting known WordPress holes. The rest got through.

Experience from post-breach clean-ups points the same way. Of the 39,594 hacked websites security firm Sucuri cleaned up in 2023, 95.5 per cent ran WordPress. That partly reflects WordPress being the biggest, but it shows where attackers spend their time.

Old PHP no longer gets help

PHP 8.1 and older no longer receive updates from the PHP project. For PHP2Shell, only minimal source-code fixes were released for the oldest versions, and users were referred to vendors with their own patches. PHP 8.2 loses support on 31 December 2026.

It affects every PHP-based CMS

Because PHP2Shell sits in PHP itself, Drupal, Joomla and home-made PHP solutions are just as exposed when the server isn't updated. The EU's cybersecurity service CERT-EU stated that all PHP installations responding to web requests were at risk.

The most exposed website is often one that was delivered a few years ago and then left to fend for itself. It sits on cheap hosting with old PHP, has plugins nobody has looked at, and has automatic updates switched off because something once broke. All three layers can then be out of date at once, without anyone noticing.

This time, it turned out fine

The internet didn't collapse. Authorities in Germany, the Netherlands and Japan reported that they hadn't seen a single successful breach via PHP2Shell, despite millions of attempts. During wp2shell, the damage was limited because WordPress forced updates through, and because Cloudflare and Automattic added protection before the fix was released. That's protection individual website owners don't control.

At the same time, the window you have has shrunk from weeks to hours. Attack attempts against PHP2Shell began before the holes were made public, and the US agency CISA later added them to its list of actively exploited vulnerabilities. According to Patchstack, around half of the most serious WordPress holes in 2025 were exploited within 24 hours, with a median of five hours. A breach doesn't have to be noticeable either. An unknown admin account or a hidden snippet of code can sit there for a long time before anyone finds it.

Those who update within hours are fine. Those who update when it suits them have become an easy target.

What you should do now

If you have a WordPress site today, do the first three steps straight away. But that's first aid, not a solution.

Do today

Next steps

Why we recommend Sanity

The most effective measure is to remove what attackers go after. With a headless setup on Sanity, your content lives in a cloud service run by Sanity, and the website itself is built in Astro or Next.js. That means no PHP facing visitors, no plugin store and no wp-admin to attack.

WordPress vs Sanity with Astro or Next.js

WordPress
Sanity + Astro
Hit by PHP2Shell
YesThe server had to be patched
NoNo PHP facing visitors
Hit by wp2shell
YesUntil updated
NoNo WordPress code
Third-party code
Plugins and themes, home to 91% of vulnerabilities in 2025
Your own code in your own Git repo
Content database
On the hosting server, alongside the website
With Sanity, SOC 2 Type 2 certified
Editing
wp-admin on the same server as the website
Sanity Studio, a separate app that fetches content via API
Needs updating
PHP, core, plugins and themes, each separately
Code dependencies, in a single project

Sources: CERT-EU, Patchstack 2026, Sanity, eSEOspace

Headless isn't automatically secure. Forms, logins and APIs still need securing, and a headless setup with WordPress behind it needs the same PHP updates as before. But a website with no PHP on the public server didn't need the PHP2Shell fix at all.

Sanity is SOC 2 Type 2 certified and runs on Google Cloud. Running and securing the content database is therefore Sanity's job, not your hosting provider's. Read more about how we work with Sanity.

New platform

Time to renew your website?

We build websites on Sanity with Astro or Next.js, and move your content from WordPress or an older CMS. We set up redirects and preserve metadata, so you don't lose rankings in the switch.

Talk to us about switching to Sanity Sanity · Astro · Next.js

Sources

Written by

Asgeir Behrentz

M51

Ready to drive results?

Let us show you how we can help your business reach its goals.