Web Security
The PHP Vulnerabilities of Autumn 2026: What Happened and What to Do
In autumn 2026, PHP released several security updates after AI helped find critical vulnerabilities. Here is how to check if your WordPress site is affected.

On 21 October 2026, PHP released an emergency security update. Two critical vulnerabilities allowed attackers to run their own code on a server without logging in. The same day, the European Commission, the EU cybersecurity agency ENISA and the EU's national incident response teams published a joint statement urging organizations to act immediately. Four weeks later, another update fixed 17 more vulnerabilities. Seven of them are rated critical.
PHP is the programming language WordPress is built with. If your business has a WordPress website, it may be affected, even if you have never had to think about which PHP version it runs on. Here we go through what happened, what role AI played and what you should do. We won't go into the technical details of the attacks.
- First update
- 21 October 2026, 2 critical vulnerabilities
- Second update
- 19 November 2026, 17 vulnerabilities, 7 of them critical
- PHP versions with both security updates
- PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0
- Versions that no longer get security updates
- PHP 8.1 and older
- Last day of security updates for PHP 8.2
- 31 December 2026
- WordPress websites on PHP 8.1 or older
- about 31 percent
Vulnerabilities that had been in PHP for more than ten years
Security company Wiz discovered the first vulnerability in August and reported it to the PHP project on 24 August. What followed was the usual process for this kind of security problem: the details were kept confidential while PHP's developers worked on a fix, so that attackers would not have a chance to exploit the vulnerability before an update was available. The update was released on 21 October, and the vulnerabilities were made public the same day. Wiz named them PHP2Shell.
The vulnerabilities were in PHP itself, not in WordPress or any plugin. According to Wiz, every PHP version from 5.4 onwards, released in 2012, was affected. In its own tests, Wiz was able to take control of servers running the latest versions of WordPress, Drupal or Joomla without logging in. Keeping WordPress and its plugins up to date was not enough.
According to security company Check Point, the first attacks came only a few hours after the vulnerabilities were made public. On 26 October, the US agency CISA added both vulnerabilities to its list of vulnerabilities that are being actively exploited. The EU statement advised organizations to find out where they use PHP, work with their hosting providers and install the updates, starting with systems that are exposed to the internet.
The next update came in November
Just two days after the October update, PHP announced that another vulnerability had been reported and would be described in more detail in the next update. That update came out on 19 November and fixed 17 vulnerabilities, seven of which were rated critical.
Security company Depthfirst has named one of them phpAfterShell. According to Depthfirst, it can be used to get around the October fix. If you updated in October, you need to update again.
PHP's assessment is that most of the critical vulnerabilities can only be exploited on servers whose settings differ from the defaults. As of 23 November, no attacks on the new vulnerabilities had been reported. The advice is still the same as in October: update.
The role of AI
Wiz found PHP2Shell using its own AI tool together with language models from Google and OpenAI. According to Wiz, AI was used to find the vulnerability, show that it could be exploited and then check that the fix worked. Wiz writes that a single researcher did in one week what would previously have taken a whole team several months.
The flaw had been in one of the world's most widely used programming languages for more than ten years without anyone noticing. According to the timeline Wiz has published, it then took just two days from finding the flaw to taking control of a WordPress server in their tests.
The same tools are now available to everyone. Old security flaws will therefore be found faster, both by researchers who report them and by attackers who want to exploit them. There have been claims that the attackers used AI in this autumn's attacks, but there is no evidence of that. What is clear is the direction things are moving in: once a vulnerability becomes known, the first attacks can come within hours or days, not weeks.
If you have a website, this means that updating whenever you get around to it is no longer enough. Critical security updates need to be installed the same week they are released.
Updating WordPress does not update PHP
This is where many people get it wrong. You update WordPress, your theme and your plugins from the WordPress dashboard. PHP is a separate part that runs on the server. If you use an ordinary web host, the host is responsible for installing PHP security updates. Sometimes you need to choose the PHP version yourself in your hosting control panel. If the website runs on its own server, you or your web agency are responsible for the updates.
WordPress.org's statistics show what this looks like in practice. At the end of November 2026, about 31 percent of all WordPress websites were running PHP 8.1 or older, which no longer get security updates. Another 22 percent were running PHP 8.2, which gets security updates until 31 December. So after New Year, more than half of all WordPress websites will be running a PHP version that the PHP project no longer maintains.
An old version number does not automatically mean that a website is vulnerable. Some web hosts and Linux distributions fix vulnerabilities in older versions themselves. But the only way to know for sure is to ask.
The most exposed websites are the ones nobody looks after anymore. That could be an old website that was never taken down when it was replaced, a campaign site from 2019 or a website built by a web agency that no longer exists.
How to check if your website is affected
1. Find out which PHP version your website uses
In WordPress, go to Tools and then Site Health. The version is listed under Server on the Info tab. You can also find it in your hosting control panel.
2. Ask your web host
Have they installed both the October and the November update? If your website runs an older PHP version, ask whether they fix security flaws in it themselves, and if so, for how long.
3. Switch to a version that gets security updates
PHP 8.3 and later get security updates until at least the end of 2027. Test on a copy of the website first. Older themes and plugins do not always work with newer PHP versions, which is often why websites get stuck on old ones.
4. Check whether anyone has broken in
Signs of a break-in can include unknown administrator accounts in WordPress, files you don't recognize, visitors being redirected to other sites or Google warning people about your website. An update closes the way in, but it does not remove anyone who is already inside. If you suspect a break-in, contact your web host and change the passwords for WordPress, your hosting account and the database.
5. Decide who is responsible for updates
If you don't know who is responsible for updating PHP on your website, you need to find out. Otherwise, there is a risk that nobody does it.
Next.js has had serious vulnerabilities too
We build websites in Next.js ourselves, and it would be easy to end by telling you to switch. But that would not give you the full picture. In December 2025, an equally serious vulnerability was found in React, which Next.js is built on. It was named React2Shell, made public on 3 December and added to CISA's list of actively exploited vulnerabilities just two days later. It also made it possible to run code on the server without logging in, and it affected websites built with Next.js.
No technology is free of vulnerabilities. The differences are more about how the technology is put together and who is responsible for security.
How many parts need to be kept up to date
A WordPress website consists of PHP, WordPress, a theme and often many plugins from different developers. All of these parts need to be kept up to date, and each one can be a security risk.
How much code runs on the server
WordPress uses PHP to build pages when someone visits the website, unless they are already stored in a cache. A Next.js website can be built in advance, so that many pages are served as ready-made files. The less code that has to run on the server, the fewer possible points of attack.
Who is responsible for updates
To fix React2Shell, the developer had to update React and Next.js and publish the website again. That only happens if someone is responsible for the work. With us, security updates are included in hosting and support.
What to do now
Above all, this autumn's PHP vulnerabilities show how quickly the security situation can change. Old security flaws are being found faster, and attacks can start within a few hours. So this is worth doing this week:
- Ask your web host which PHP version your website uses and whether both security updates are installed.
- Plan to switch PHP version before 31 December if your website uses PHP 8.2 or older.
- Make sure someone is responsible for security updates, and that you know who it is.
If you are thinking about moving away from WordPress, you can read our comparison of Next.js and WordPress or our article on how to switch web agency without losing visibility in Google.
If you would like to talk about your website, you are welcome to get in touch.
Frequently asked questions
It depends on which PHP version your website uses and whether your web host has installed the security updates from 21 October and 19 November 2026. The vulnerabilities are in PHP, not in WordPress, so updating WordPress alone is not enough. Ask your web host, or go to Tools and then Site Health in WordPress to see which PHP version your website uses.
No. PHP is updated separately from WordPress. If you use an ordinary web host, the host is responsible for PHP security updates. Sometimes you need to choose the PHP version yourself in the control panel.
From 1 January 2027, the PHP project will no longer fix new security flaws in PHP 8.2. Your website will keep working, but flaws discovered after that date will not be fixed by the PHP project. Your web host may still choose to fix them itself. Switch to PHP 8.3 or later, and test on a copy of your website first.
Yes, at least the first ones. Security company Wiz found PHP2Shell in August 2026 using its own AI tool and language models from Google and OpenAI. There is, however, no evidence that the attackers used AI.
Not automatically. Next.js was also hit by a serious vulnerability in December 2025, known as React2Shell. A Next.js website often has fewer parts that need updating and can run less code on the server on each visit. But someone still has to be responsible for security updates.



















