WordPress Security Updates and PHP Versions: What to Keep Patched and How to Check

A WordPress site is only as safe as the software under it. Here is what needs updating, how to check your PHP version in a minute, what the October 2026 PHP flaw means and which versions are still supported.

Free, no obligation

What Needs Updating to Keep a WordPress Site Secure?

Four layers need to stay up to date to keep a WordPress site secure: PHP on the server, WordPress itself, the theme and every plugin. A weakness in any one of them can be used to get into the site, however well the others are looked after.

WordPress's own hardening guide is direct about it. It says that WordPress is updated regularly to address new security issues, that you should always keep up to date with the latest version, and that older versions of WordPress are not maintained. It also says to make sure plugins are always updated, and to delete any you are not using.

The layer most owners forget is PHP, the language WordPress runs on, because it is managed by the host and not shown in the dashboard. In October 2026 two critical flaws were found in PHP itself, and the PHP project's advisory says there are no complete mitigations and updating is the only safe choice. A site can have every plugin current and still be exposed if the server is running an unpatched PHP.

I help Irish businesses keep WordPress patched, and I tell you honestly when the effort of keeping up is the real problem. It starts with a free site check. The WordPress care and repair hub covers the other problems, and the maintenance plans spoke covers doing it on a schedule.

Which Parts of a WordPress Site Need Security Updates?

Each layer has its own updates, its own owner and its own way of being forgotten.

PHP

The language the whole site runs on, set by the host. Old versions stop getting fixes, and a flaw there affects every site on the server.

WordPress Core

WordPress itself, updated regularly for security. WordPress warns that older versions are not maintained.

The Theme

Themes have flaws too, and a theme that has not been updated for years is a risk, even if it looks fine.

Plugins

The most common way in. WordPress advises keeping them updated and deleting any you do not use.

The Database and Host

The server software and database behind the site, which the host usually looks after but which should be current too.

Passwords and Users

Not software, but equally important. Weak or reused passwords and forgotten accounts are a regular route in.

A paintbrush resting across an open pot of pale paint on a timber trestle shot from above

How to Check Your PHP Version in WordPress in a Minute

You can find the PHP version without being technical. There are three ways, from easiest to most certain.

The easiest is WordPress's own Site Health screen in the dashboard, which reports the PHP version the site is running along with other server details, and warns if it is out of date. It takes a minute and needs no technical knowledge, though you do need to be able to log in.

The second is your hosting control panel, which usually shows the PHP version and lets you choose a different one. It is worth looking there, since the panel is also where a change is made.

The third is to ask your host directly, and it is the most certain. Ask what PHP version the site is running and whether it is patched against the October 2026 flaw. A good host answers plainly, and if they cannot, that tells you something about the host. Write the answer down with the date, because the version will change over time and you will want to know when it was last checked. It is also worth asking whether the host will move you to a newer version automatically when an old one reaches the end of its support, and who is told when that happens, since a version that quietly reaches its end date is how many sites end up on unsupported software without anyone deciding it.

The October 2026 PHP Flaw: What It Means for a WordPress Site

Two critical flaws in PHP itself were fixed in October 2026. They are not in WordPress, which is why a fully updated WordPress can still be affected.

On 21 October 2026 the PHP project announced releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35, which fix two critical vulnerabilities that can allow unauthenticated remote code execution. In plain words, someone could make the server run their instructions without needing a password. CISA, the US cybersecurity agency, urged organisations to update immediately to those versions, and says the flaws affect all PHP installations serving web requests.

The PHP project states that there are no complete mitigations, and that updating is the only safe choice. A web application firewall may give some protection until a server is patched, as CISA notes, but it is a stopgap and not a fix. Later releases in each branch have followed, so the aim is the latest release available for your branch, not only the first one with the fix.

The practical steps are simple. Find out your PHP version, compare it with the patched releases for your branch, and ask your host to update it if it is behind. Then check the site still works, because moving PHP version can break an old plugin or theme.

Which PHP Versions Are Still Supported for WordPress Right Now?

PHP branches are supported for a fixed time, and the dates matter more than the patch. The table shows the position on the php.net page as of 24 November 2026.

Supported PHP branches and when their support ends, from the php.net supported versions page
PHP branchActive support untilSecurity fixes until
PHP 8.2Ended 31 Dec 202431 Dec 2026
PHP 8.3Ended 31 Dec 202531 Dec 2027
PHP 8.431 Dec 202631 Dec 2028
PHP 8.531 Dec 202731 Dec 2029
PHP 8.6 (released 19 Nov 2026)31 Dec 202831 Dec 2030
A tidy garden shed shelf with plain tins, brushes and a watering can in soft side light

What PHP Version Should You Use for WordPress Right Now?

WordPress publishes a recommendation, and the support dates decide how long any choice lasts.

WordPress says it recommends that your host supports PHP version 8.3 or greater. Within the supported range, a newer branch gives you more time before the next move, so PHP 8.4 or 8.5 is a sensible target for most sites, provided the theme and plugins support it.

PHP says each branch is fully supported for two years from its first stable release, and then supported for two further years for critical security issues only. PHP 8.2 is therefore close to the end of its security support, and PHP 8.1 and older no longer receive fixes from the PHP project at all.

Being on a current PHP does not finish the job. It fixes PHP and does nothing for WordPress itself, the theme or the plugins, which each have their own updates. A site on fully patched PHP can still be running a plugin that has not been updated in two years.

How a WordPress Security Update Is Done Safely, Step by Step

An update done in the wrong order can break the site it was meant to protect. The order below avoids that.

  1. Check and Back Up

    The PHP and WordPress versions are recorded, and a backup is taken and tested.

  2. Test on a Copy

    The updates are applied to a staging copy and the site and forms are checked.

  3. Update the Live Site

    The same updates are applied to the live site, in a quiet period, one layer at a time.

  4. Test and Record

    Pages, forms and email are tested again, and the new versions are recorded for next time.

A sash window with a fresh putty line being finished and a putty knife resting on the sill in morning light

Why WordPress Security Updates Keep Coming, and What to Do About It

Security flaws are found in software all the time. It is a normal part of running any site built on other people's code.

WordPress, its themes and its plugins are written by many different people, and flaws are found in them regularly. WordPress itself says it is updated regularly to address new security issues, which is a sign of healthy maintenance, not a sign that something is wrong.

For a small business, the question is who does the keeping up. A maintenance routine, done by you or by someone else, is the practical answer.

There is also the option of a site with less to update. A site built in advance and served from Cloudflare has no plugins, no theme code and no PHP running when someone visits, so most of this routine simply does not apply. It is not for every site, and the WordPress migration services page sets out the honest outcomes.

WordPress Security Updates and PHP Versions: Questions, Answered

What needs updating to keep WordPress secure?

PHP on the server, WordPress itself, the theme and every plugin. WordPress advises keeping WordPress and plugins updated, and deleting any plugins you do not use.

How do I check my PHP version in WordPress?

Open Site Health in the dashboard, which reports the PHP version. You can also look in your hosting control panel, or ask your host directly, which is the most certain.

What was the October 2026 PHP flaw?

Two critical vulnerabilities in PHP itself, fixed on 21 October 2026 in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They can allow unauthenticated remote code execution, and they are not flaws in WordPress.

Is my WordPress site affected by the PHP flaw?

If the server runs a PHP version below the patched release for its branch, it is, whatever WordPress version you have. CISA says the flaws affect all PHP installations serving web requests.

Can a firewall protect me instead of updating?

It may give some protection in the meantime, as CISA notes, but the PHP project says updating is the only safe choice. A firewall is a stopgap, not a fix.

Which PHP version should I be on?

WordPress recommends hosting that supports PHP 8.3 or greater. PHP 8.4 or 8.5 gives more time before the next move, provided your theme and plugins support it.

What happens to PHP 8.1 and older?

The PHP project says they no longer receive updates. PHP 8.1 reached the end of its support on 31 December 2025, so a site still on it should move.

Will updating PHP break my site?

It can, if an old plugin or theme does not support the newer version. Test on a staging copy first, and keep a backup. The <a href="/wordpress/update-broke-my-site">update broke my site</a> spoke covers what to do if it happens.

Is updating PHP my job or my host's?

The host sets the version, usually through the hosting panel, and you choose or ask for the change. A good host will tell you which version is running and help you move.

Does a security plugin replace updates?

No. WordPress notes firewall plugins and services can help, but keeping everything updated and removing unused plugins matters at least as much. A plugin cannot fix flaws in old software.

How often should I update WordPress?

Regularly, and promptly for security releases. WordPress warns that older versions are not maintained, so waiting a long time raises the risk and makes the eventual update bigger.

What if I cannot keep up with the updates?

Then hand them to someone, or choose a site with less to update. The <a href="/wordpress/maintenance-plans">maintenance plans</a> spoke explains doing it on a schedule.

How do I know which plugins and themes are out of date?

The dashboard shows pending updates, and a plugin that has not been updated by its author for a long time is worth replacing. A scan of the site can also list versions and flag known problems.

What if my site has already been hacked?

Make it safe, change the passwords, back it up and clean it. The <a href="/wordpress/hacked-site">hacked site</a> spoke sets out the steps in order.

WordPress Care and Repair Built to Keep Your Site Working

Send me your current website address and I will tell you plainly what is working, what is holding it back and whether a fix, a plan or a move is the right call. Free, with a fixed price agreed before any work starts.

Get your free audit A plain-English look at your site, with no obligation. Go now →