Home » Guides » PHP vulnerability
PHP vulnerability 2026: is your website affected?
On 21 October 2026, two critical flaws in PHP were made public. PHP runs WordPress and most other website software. New Zealand's National Cyber Security Centre is telling organisations to update now. If your site runs on PHP and hasn't been updated since then, it needs attention today.
I can check your site and patch it. I'm a web developer with a cybersecurity background, based in Wellington and working anywhere in New Zealand.
Last updated 25 October 2026.
Is Squarespace affected by the PHP vulnerability?
No action is needed. If your website is on Squarespace, you don't run PHP yourself, so there's nothing for you to patch. Squarespace looks after its own servers.
That's one of the reasons I build small business sites on Squarespace: updates like this are handled for you. If you're on WordPress and thinking about moving, see Squarespace website design or Squarespace vs Wix vs WordPress.
The PHP2Shell vulnerability explained
The two flaws are tracked as CVE-2026-109618 and CVE-2026-109619, and are often called PHP2Shell. They let an attacker run their own code on a web server without logging in. That can mean stolen customer data, a defaced site, spam sent from your domain, or your server used to attack others.
The PHP project released fixed versions on 21 October. Now that the fix is public, attackers can work backwards from it, and security firms are already reporting attempts to exploit it. Some governments overseas took their own websites offline until they could patch, as reported by the Guardian.
In the news
Is WordPress affected by the PHP vulnerability?
Yes. WordPress runs on PHP, so every WordPress site needs the PHP security update on its server. So does any other site built on PHP.
Yes, if the server's PHP hasn't been updated. This includes WooCommerce stores and every WordPress theme and plugin.
Check nowJoomla, Drupal, Magento, Silverstripe, MODX, Craft CMS, Laravel apps and most custom-built sites from the last twenty years.
Check nowYou don't run PHP yourself on these, so there's nothing for you to patch. The platform looks after its own servers.
Nothing to doIf you pay a web host and someone built the site for you, it's probably WordPress. Send me the address and I'll tell you.
Ask meHow to check your WordPress PHP version
The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Your site needs to be on one of these, or newer in the same series.
- In WordPress: go to Tools, then Site Health, then the Info tab, and open Server. It shows the PHP version.
- In your hosting control panel: look for "PHP version" or "Select PHP version", often in cPanel.
- Ask your host: email them and ask whether your server has the 21 October PHP security update. Managed hosts are patching their servers now.
On PHP 8.1 or older? There's no official fix for those versions. The site needs moving to a supported version, which can break old themes and plugins, so it should be tested before it goes live.
How to patch the PHP vulnerability
The PHP security update is a new version of PHP on your web server. Your website files don't change.
- Shared or managed hosting: ask your host to confirm the 21 October PHP security update is installed, or switch to a patched version in your control panel.
- Your own server: install your Linux distribution's updated PHP packages, or build PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, then restart PHP-FPM or the web server.
- PHP 8.1 or older: move to a supported version first, test the site, then patch.
- After patching: update WordPress, themes and plugins, and check for admin accounts or files you don't recognise.
What I do
- Check which PHP version your site runs and whether it's exposed.
- Get PHP updated, through your host or on the server directly.
- Move older sites to a supported PHP version and fix what breaks.
- Update WordPress, themes and plugins while I'm in there.
- Look for signs someone got in first: unknown admin accounts, new or changed files, and backdoors, which is what the UK's National Cyber Security Centre is advising.
- Change passwords and keys if anything looks wrong.
- Tell you in writing what I found and what I fixed.
Cost: my usual $100 an hour, with an estimate before I start. Most small WordPress sites are a short job when the host already has the update.
Common questions
Is my Squarespace website affected by the PHP flaw?
No action is needed from you. Squarespace runs its own servers, and you don't manage PHP on them. The same goes for Wix and Shopify.
Should I take my website offline?
If it can't be updated within a day or two and it holds customer data, taking it offline until it's patched is the safer choice. US and UK security agencies gave that advice to organisations that couldn't patch straight away.
My host says they've updated PHP. Am I done?
Mostly. If the site was exposed before the update, it's still worth checking for signs of a break-in, because a backdoor added before the patch stays there afterwards.
How much does it cost to patch my site?
$100 an hour, with an estimate before I start. A WordPress site on a host that already has the update is usually quick. Sites on old PHP versions take longer.
Can you help if I'm not in Wellington?
Yes. This is all done remotely, anywhere in New Zealand.
Where can I read the official advice?
The NCSC New Zealand advisory has the full technical details. The Guardian's report on the website shutdowns covers what happened overseas.