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 branch | Fixed in |
|---|---|
| 8.5 | 8.5.12 |
| 8.4 | 8.4.27 |
| 8.3 | 8.3.36 |
| 8.2 | 8.2.35 |
| 8.1 and older | No 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.


