Two critical flaws, every PHP version
On 21 October 2026, PHP released emergency patches for two critical vulnerabilities, known as PHP2Shell. They affect every PHP version that handles web requests, and they let an attacker run their own code on a server without logging in. Attackers didn’t wait. Amazon Web Services traced exploitation attempts back to 17 October, four days before a fix existed. By 26 October, the US Cybersecurity and Infrastructure Security Agency (CISA) had confirmed active attacks. It advised organisations still running PHP 8.1 or older to take those systems offline until they’re upgraded.
If your website runs on WordPress, it runs on PHP. This one is about you.
17 Oct
First attacks, before any fix exists
21 Oct
PHP releases emergency patches
26 Oct
CISA confirms active exploitation
27 Oct
Node2Shell also
confirmed exploited
Why a PHP flaw hits WordPress sites so hard
Every time someone visits a WordPress page, PHP builds it on the spot. It queries the database, runs the theme, runs every active plugin, then sends the result. That happens on every visit, on a server permanently open to the internet.
So when PHP itself has a flaw, every WordPress site on that server is exposed. Fixing it means your host updating PHP, and your theme and plugins still working on the new version afterwards.
That second part is where it goes wrong. Older plugins often break on newer PHP, so sites get left behind on old versions. As of September 2026, 37.6% of WordPress installations reporting to WordPress.org were on a PHP version at end of life, with no security fixes of any kind. PHP 7.4, unsupported since November 2022, still runs on 16.7% of them.
37.6%
of WordPress installations run a PHP version with no security fixes.
How a modern stack works differently
A modern website stack, such as Next.js hosted on Vercel, is built differently from the ground up.
WordPress: on every visit
- Visitor
- Server
- PHP
- Database
- Theme
- Plugins
- Page
Modern stack: built once, served
- Visitor
- Pre-built page
Pages are built in advance. Most pages are generated once, when the site is published, then served as finished files. There’s no code running on every visit for an attacker to target. Every new site we build works this way.
- No plugins. Features are written into the site itself and reviewed as part of the build, not bolted on by third parties.
- The platform runs the servers. The hosting platform manages and patches the underlying runtime, instead of relying on each site owner or host to keep up.
- Every change is tracked. The site’s code lives in version control. If an update causes a problem, rolling back takes minutes.
- Content is still easy to update. It’s managed in a separate, modern content management system, so the people running the business can edit it without touching the code.
Modern stacks aren’t bulletproof
No technology is immune. The same week as PHP2Shell, Node.js, which Next.js runs on, disclosed its own critical flaw, known as Node2Shell. It was patched on 21 October and confirmed as actively exploited on 27 October. The difference was what happened next. On our sites hosted on Vercel, the platform handled the update. We didn’t have to touch them, and neither did our clients. That’s the real case for a modern stack. Flaws still happen, but there are far fewer places for them to hide, and far fewer people you’re relying on to fix them.
What to do now
If your site runs on WordPress, check two things: which PHP version it’s on, and whether your host has applied the October patches (PHP 8.2.35, 8.3.36, 8.4.27 or 8.5.12). If either answer is “I don’t know”, that’s your answer.
Book a free WordPress audit and we’ll check both for you.
