Skip to content



Is WordPress safe after PHP2Shell? Our take

Duration: 4:55

PHP2Shell is a critical PHP vulnerability rated 9.2 out of 10. Why we avoid monolithic WordPress, how a headless Next.js and Sanity stack keeps the surface area small, and the open source starter we use to spin one up.

Related reading: Thinking of jumping ship from WordPress?

PHP2Shell is the name given to two critical vulnerabilities in PHP, CVE-2026-109618 and CVE-2026-109619 (opens in new tab). The PHP security team released fixes on October 21, 2026, and rates both 9.2 on CVSSv4.0. According to CISA (opens in new tab), they allow unauthenticated remote code execution and affect all PHP installations serving web requests.

It's a PHP flaw, not a WordPress bug. WordPress.org (opens in new tab) says the vulnerabilities "are not specific to WordPress and affect any server that hosts a PHP application", and that no WordPress update is required or planned. The fix is updating PHP, which on most sites means your web host.

Fixed PHP versions

PHP branchFixed in
8.58.5.12
8.48.4.27
8.38.3.36
8.28.2.35
8.1 and olderNo official release. The PHP project no longer sends security updates for versions before 8.2.

CISA says organizations that can't update right away, or that still run PHP 8.1 or earlier, should take PHP-based systems offline until they are patched.

How to check a WordPress site

WordPress shows your PHP version under Tools > Site Health > Info > Server, and many hosts show it in their admin panel. If it's below the fixed version for your branch, update PHP or ask your host to. WordPress.org notes that your host may already be updating PHP and adding web application firewall rules, but you should still check.

Why we build headless instead

Patching PHP fixes PHP2Shell. The video is about why we don't build on monolithic WordPress in the first place: logins, plugins, forms and user management all live in one system with a huge surface area, and whoever runs it has to fix a zero day like this one fast. We build headless with Next.js and Sanity, where the CMS vendor handles the security of the CMS.

  • 0:00 The vulnerability and the 9.2 rating
  • 0:29 Why we build headless, not WordPress
  • 0:58 WordPress is a monolith
  • 1:17 Headless has a tiny surface area
  • 1:39 Pick and choose your backend
  • 2:17 Security is Sanity's problem, not yours
  • 2:49 Zero days and the WordPress attack surface
  • 3:26 Turbo Start Sanity (opens in new tab), our open source starter

If you're weighing a move, thinking of jumping ship from WordPress? covers what leaving involves. For the mechanics, read how to migrate from WordPress to Sanity fast, how to transfer from WordPress to Jamstack fast and the WordPress to Sanity migration guide. If you want us to do the move, see our CMS migration and headless CMS services.

Sources

Loading video player…

Frequently asked questions

How serious is the PHP vulnerability covered in the video?
It is rated 9.2 on the CVSS scale, which goes up to 10, so it is pretty bad. The advice is to update immediately, and if you can't update immediately, you should probably take the entire website offline. We cover this at 0:00 in the video.
Is WordPress safe after PHP2Shell?
Our take is that we would avoid a monolithic, PHP-based system like WordPress, and this vulnerability is the main reason. WordPress has a huge surface area, and a zero day like this needs to be solved fast. In our view, a massive surface plus a vulnerability this bad is a catastrophic combination. We cover this at 0:29 and 2:49 in the video.
Why do we call WordPress a monolith?
WordPress handles a lot of different systems in one place: logins, plugins, forms that a lot of people keep in there, and quite extensive user management. All of that runs inside one monolithic system, which is what gives it such a large surface area. We cover this at 0:58 in the video.
What is a headless website and why is it more secure?
A headless system is usually a website built with a framework like Next.js, which is what we build, or React Router or Astro. It sits on a very narrow surface area compared to WordPress. Because the surface is smaller, there is a lot less chance of getting hacked or of a vulnerability as catastrophic as this one. We cover this at 1:17 and 2:55 in the video.
Can I choose my own backend, forms and user management with headless?
Yes. With headless you pick whatever you want as a backend, whatever you want for forms, and a service like Clerk for user management. You pick the best option in the industry for each job and bolt it on. We cover this at 1:39 in the video.
Why would a hosted CMS like Sanity be safer than WordPress?
With a CMS like Sanity or Contentful, the vendor has to manage the security, so a vulnerability is their problem, not yours. Sanity has enterprise clients paying hundreds of thousands to millions of dollars, so it has to keep them happy. With WordPress, the fix falls on your one IT team, or on whoever runs WordPress in your team if you don't have one. We cover this at 2:17 in the video.
What is Turbo Start Sanity?
Turbo Start Sanity is our open source starter for building a headless website with Next.js, Sanity and Vercel. It is fully MIT licensed with no clawback clause, so you can use it for your own business, and you can swap Vercel for AWS or Cloudflare. It makes it easy to spin up and vibe code your own site, though we recommend getting us in towards the end to check it is set up properly. We cover this at 3:26 in the video.


Related services



Continue watching

Get in touch

Tell us what you're building. We reply within one working day. Jono or someone on the team picks up every message personally.

By sending this you agree to our privacy policy. We only use your details to reply.