WordPress 7.1.2 Security Update: What Bloggers on Shared Hosting Must Do Now

Affiliate disclosure: Top Tier Blog Host earns a commission if you buy hosting through some of the links on this page. It never changes what you pay, and it never changes which host we tell you to avoid.

The WordPress 7.1.2 security update landed on September 22, 2026, and attackers were already probing for the hole it closes the same day. Patchstack logged the first exploitation attempts at 11:49 UTC — hours after the patch went public, not days. If you run a self-hosted WordPress blog on shared hosting and you have not looked at your version number since the weekend, this is the one to stop and handle.

The good news for most beginner bloggers: the full attack chain needs specific conditions that a lot of ordinary blogs do not meet. The bad news: checking takes five minutes and ignoring it risks remote code execution on your server. Here is what the bug does, how to tell whether you are exposed, and what to do in what order.

What CVE-2026-87902 actually does

CVE-2026-87902 carries a CVSS score of 9.2 — critical. Patchstack classifies it as a path traversal leading to local file inclusion and conditional remote code execution, and it requires no authentication at all. An attacker does not need an account on your site. They need a request.

The mechanism sits in how WordPress resolves page templates. Normally get_page_template() looks inside your active theme’s directory for a file matching the page you requested. The bug lets an unauthenticated attacker push that resolution outside the theme directory, so WordPress includes a readable .php file somewhere else on the server. The file attackers reach for is pearcmd.php, a PEAR command-line helper that ships on a surprising number of PHP images. Once it is included, it can be used to write PHP to disk in locations like /tmp, and at that point an attacker is running their code on your host.

The two conditions that decide whether you are exposed

Patchstack is specific about what each stage of the attack needs, and the distinction matters more than most coverage has suggested:

  • For the file inclusion: your active parent or child theme contains a top-level directory whose name starts with page-, and there is a readable .php file on the server to point at. This is a theme-structure quirk, not something you chose — you have to look.
  • For the escalation to code execution: PHP has register_argc_argv enabled, which is what makes the pearcmd.php chain work. This is a server setting your host controls, not something in your WordPress dashboard.

SecurityWeek’s reporting names legacy default themes Twenty Twelve and Twenty Fourteen, plus third-party themes including Neve, Hestia and Sydney, among those whose directory structure meets that condition. That does not make those themes vulnerable in themselves: the bug is in core, and the theme layout is simply what the exploit needs in order to escape the theme directory.

The split between the two stages matters practically, because a lot of coverage has blurred it. Disabling register_argc_argv breaks the pearcmd.php route to remote code execution. It does not fix the file inclusion underneath. Only updating does that.

Which version you need, by branch

The vulnerability reaches all the way back to WordPress 4.7.0 and affects everything through 7.1.1. WordPress patched every supported branch at once rather than forcing everyone onto 7.1.x, so find your branch and match the number:

Your branchPatched versionWhat to do
7.1.x7.1.2Update — this is the current release
7.0.x7.0.6Update, then plan a move to 7.1.x
6.9.x6.9.9Update, then plan a move to 7.1.x
6.8.x6.8.10Update, then plan a move to 7.1.x
4.7 through 6.7Backports down to 4.7.37Update now, and treat the upgrade to a supported branch as urgent
Affected: WordPress 4.7.0 through 7.1.1. Patched versions per Patchstack, September 2026.

If you are on a branch older than 6.8, the patch buys you time but it does not fix the underlying problem, which is that you are years behind on a platform that ships security releases regularly. Our WordPress security guide for bloggers covers how to get current without breaking your site.

Am I affected? A 60-second check

Do these in order. You can do all three from your WordPress dashboard without touching a terminal.

  1. Check your version. Dashboard → Updates, or look at the bottom-right of any admin screen. If the number is below the patched version for your branch in the table above, you are exposed to the bug regardless of the other two conditions.
  2. Check your theme. Appearance → Theme File Editor, or your host’s file manager. Look at the top level of your active theme’s folder for any directory starting with page-. Most modern themes keep page templates as loose files, not directories, so an empty result here is common and good.
  3. Check PHP. Tools → Site Health → Info → Server shows your PHP configuration. If your host exposes register_argc_argv there and it reads On, the pearcmd route to code execution is open on your server. If you cannot see it, ask support — it is a one-line question.

An unpatched version plus a theme with a page- directory means update immediately and then check for compromise. If register_argc_argv is on as well, treat it as urgent. Neither condition still means update, just without the adrenaline.

How fast this went from patch to attack

The timeline is the real story here, and it is why “I update monthly” is no longer a defensible policy for a self-hosted blog.

WhenWhat happened
September 22, 2026WordPress 7.1.2 released with the fix
September 22, 11:49 UTCFirst exploitation attempts observed in the wild
September 23Activity escalates from reconnaissance to file-writing attempts
September 22, eveningA slow trickle of probing
September 23Traffic peaks around midday UTC; public scanning tooling appears, including a Nuclei template
Since thenTraffic running at more than ten times the first evening’s volume
Timeline per Patchstack’s exploitation analysis, September 2026.

Patchstack’s own summary of where this stands: updating “is still the answer, and given stage three it is now urgent.” This is the third significant security event to hit WordPress site owners in a month, after the September plugin advisories and the Elementor 4.3.2 CSRF patch.

What to do today, in priority order

  1. Update WordPress core. Dashboard → Updates → Update Now. On a normal blog this takes under a minute and breaks nothing, because security releases are deliberately minimal.
  2. Turn on automatic core updates if they are off. WordPress enables automatic minor and security updates by default; some hosts and some optimization plugins disable them. If yours are off, this incident is the argument for turning them back on.
  3. Ask your host about register_argc_argv. If it is on and you do not need it — and a blog does not — ask them to disable it. That breaks the route to code execution, but it is a stopgap: the file inclusion is still there until you update.
  4. Block traversal sequences in the pagename parameter. If you run a WAF, this is the rule to confirm is active. Again a stopgap rather than a fix, and worth doing only if you cannot update today.
  5. If both conditions were true and you were unpatched for more than a day, check for compromise. Look for unfamiliar PHP files in /tmp, /var/tmp and your uploads folder, unexpected admin users, and scheduled tasks you did not create.

Does your host do any of this for you?

This is the honest dividing line between cheap shared hosting and managed WordPress hosting, and it is worth being clear about rather than selling you something. Managed WordPress platforms generally apply core security releases for you and run a WAF in front of your site, which means for a bug like this you were patched while you slept. Entry-level shared hosting generally does not, and leaves core updates to WordPress’s own auto-update setting, which anyone can switch off.

Neither is wrong. A blog making no money does not need a managed plan, and our shared hosting comparison covers the sensible budget options. But if you have reached the point where a day of downtime costs you real money, the managed tier is buying you exactly this: someone else’s security team noticing at 11:49 UTC instead of you noticing on Thursday. Kinsta and SiteGround are the two we point beginners to most often for that reason, and if you are moving, our migration walkthrough covers doing it without downtime.

Who should NOT act on this

Not everyone reading this needs to do anything, and panic-driven changes break more blogs than vulnerabilities do.

  • If your blog is on WordPress.com rather than self-hosted WordPress, this is not your problem. Automattic patches the platform. If you are not sure which you have, our WordPress.org vs WordPress.com explainer settles it in two minutes.
  • If automatic updates are on and your dashboard already shows a patched version, you are done. Do not install a security plugin you do not otherwise want because of one CVE.
  • Do not switch hosts this week because of this. Migrating under stress is how people lose databases. Patch first, then decide about hosting calmly in a month.
  • Do not start hand-editing PHP configuration you do not understand on the strength of a blog post. Ask your host’s support to check register_argc_argv instead.

Frequently asked questions

Is the WordPress 7.1.2 security update safe to install on a live blog?

Yes. WordPress security releases change as little code as possible precisely so they can be applied without testing. The risk of installing it is far lower than the risk of sitting on an unpatched version while public scanning tools circulate.

How do I know if my site was already hacked?

Look for PHP files you did not put in /tmp, /var/tmp or wp-content/uploads, administrator accounts you do not recognize, and unexpected entries in your scheduled tasks. If you find any of those, restore from a backup taken before September 22 and change every password rather than trying to clean the site by hand.

Do I need to change my theme because of this?

No. The theme directory structure is one of two preconditions, not the vulnerability itself. Once core is patched, a theme with a page- directory is no longer a problem. Changing themes is a much bigger disruption than updating core.

Does a security plugin protect me if I cannot update right away?

Partially. A WAF that blocks path traversal sequences in the pagename parameter will stop the known exploitation pattern, and Patchstack lists it among the mitigations. It buys you time while you schedule the update; it does not remove the vulnerability.

Why does a 2026 bug affect WordPress versions from 2016?

The flawed template-resolution logic has been in core since 4.7.0, released in December 2016. Nobody found it until now. That is also why WordPress issued backports as far down as 4.7.37 rather than only patching current branches.

The bottom line

The WordPress 7.1.2 security update closes a CVSS 9.2 hole that attackers began probing the same day it shipped, and that reaches back through nine years of WordPress releases. Most beginner blogs will not meet both exploitation conditions, but checking takes a minute and the patch takes less than that.

The broader lesson is about cadence, not this specific bug. When the gap between a public patch and working exploit code is measured in hours, the question that matters is not which plugin you run — it is whether anything updates your site when you are not looking. If the answer is no, fix that this week.

Sources

Similar Posts