Theme
Let's have a chat →
← Back to Knowledge Hub
website securityWordPressPHPAstrosmall business tech

PHP2Shell: why my Astro sites had nothing to patch.

Nick Ridley, founder of Thinksay Creative Communications By Nick Ridley ·

On Tuesday 21 October, PHP released emergency fixes for two critical security flaws. Attacks had already started, hours before the fixes landed, because details leaked a day early.

If your website runs on WordPress, this affects you. My Astro sites had nothing to patch. Here is what happened, what to do today if you are on WordPress, and why I have been moving client sites off PHP altogether.

What happened, in plain English

PHP is the language running on the server behind WordPress, WooCommerce, Divi, Elementor and most of the plugins you have ever installed. The two flaws, nicknamed PHP2Shell (CVE-2026-109618 and CVE-2026-109619), let an attacker run their own code on that server without logging in. Not your admin account. The server itself.

The part that catches small businesses out: this is not a WordPress bug. Updating WordPress does not fix it. A security plugin does not fix it. Maintenance mode does not fix it either, because PHP reads the request before WordPress has even loaded.

Why Astro sites had nothing to patch

An Astro site, the way I build them, is generated in advance and served as plain files from Cloudflare. When someone visits, there is no PHP running, no database answering and no plugins sitting on a server waiting for the next vulnerability.

PHP2Shell attacks the thing that runs your website every time a page is requested. On an Astro site, nothing like that exists. The pages were built before the visitor arrived. There is nothing to break into on the way through.

Think of it like a shop. A WordPress site is a shop where a member of staff assembles every order from the back room while the customer waits, and anyone can shout instructions through the hatch. An Astro site is a shop where everything is already packed and on the shelf. The customer takes what they came for. There is no hatch.

It is not perfect, and I am not going to pretend it is

Static sites still have risks. They just live in different places:

  • Your accounts. The logins for your domain, your hosting and your content editor need strong passwords and two-factor authentication. That is where an attacker would aim instead.
  • The build tools. The code that builds the site still needs keeping up to date. The difference is that it runs on a build machine, not on a public server anyone can reach.
  • Forms and extras. Anything interactive, like a contact form, runs as a small separate function. It needs looking after, but it is one small thing rather than a whole plugin stack.

The risk moves from a server anyone on the internet can poke at, to a handful of accounts you control. That is a much smaller target, and it is far easier to look after properly.

On WordPress? Five things to do today

1. Email your host. Copy and paste this: “Please confirm the PHP runtime serving my website has the fixes for CVE-2026-109618 and CVE-2026-109619.” The patched versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Most decent hosts patched on the day. Get it in writing anyway.

2. Check your PHP version. If your site is on PHP 8.1 or older, there is no patch coming. You need to upgrade, and test your plugins and theme afterwards, because old plugins are usually the reason sites get stuck on old PHP.

3. Switch on Cloudflare’s rules if you use Cloudflare. Cloudflare published firewall rules for the known attack paths, and they are available on the free plan. That is a stopgap, not a fix. Do it as well as step 1, not instead of it.

4. Look for signs something has already happened. Admin users you did not create, files you do not recognise, pages redirecting to strange sites, or a warning from your host. If you see any of these, patching is not enough. The site needs cleaning properly.

5. Find out who is actually responsible. If you read this and genuinely do not know who looks after your hosting, that is the real problem this week has exposed. Fix that and the next one is far less frightening.

Not ready to move? That’s fine too

I have built plenty of WordPress sites, including this one, once. Not every site should move tomorrow. A WooCommerce shop with years of orders, or a site that leans on booking or membership plugins, might be better staying put for now.

For those, the answer is proper care: someone who patches PHP for you, checks it actually happened, and tells you when you are falling behind, rather than you finding out from the news.

Let’s have a chat about moving

If you are on WordPress and this week made you nervous, book a free 30-minute chat. I will look at your site, tell you whether it is patched, and give you an honest answer on whether moving to Astro makes sense for you, or whether you are better off staying where you are with proper support.

You keep your domain, your content and your Google rankings. You lose the plugins, the update nags and the weeks like this one.

No pitch. No pressure. Book a free chat, or start with a Website MOT.

Sources: Recorded Future on PHP2Shell exploitation, Search Engine Journal on the PHP security release, Codeable: what WordPress site owners need to do.

Found this useful? Let's work together.

We help small businesses across Colchester and Essex with brand, web design, photography and marketing. Let's talk.

Got a project?

No pitch. No pressure. Just an honest chat with Nick about what you need.

Book a free 30-min chat Or find out about the AI Brand Audit →