WordPress 7.1.2 Security Fix: What Business Owners Must Do Now
WordPress 7.1.2 fixes CVE-2026-87902, attacked on release day. A 15-minute owner check, safe update steps and signs your site was hit before you patched.
- Written by Pixel2Tech Team
- Topic: Web Development
- Published
- 7 min read

Key takeaways
- WordPress 7.1.2, released September 22, 2026, fixes CVE-2026-87902: an unauthenticated flaw rated 9.2 under CVSS 4.0 that lets an attacker make WordPress include a PHP file from elsewhere on the server, which can lead to remote code execution.
- Every version from 4.7.0 to 7.1.1 is affected. Fixed releases exist for older branches too (7.0.6, 6.9.9, 6.8.10 and so on down to 4.7.37), so you don't need a major upgrade to get the patch.
- Patchstack recorded the first exploitation attempt at 11:49 UTC on release day, and CISA added the CVE to its Known Exploited Vulnerabilities catalog on September 25, 2026.
- Check three things today: your WordPress version, whether automatic background updates are working, and whether you still have admin and hosting logins yourself.
- Patching closes the hole but doesn't remove anything planted before you patched. Look for unknown admin users, unfamiliar PHP files, odd redirects and spam pages in Google.
In this article (9 sections)
What did the WordPress 7.1.2 security update fix?
WordPress 7.1.2 is a security release published September 22, 2026. It fixes CVE-2026-87902, a critical flaw rated 9.2 under CVSS 4.0 that lets an unauthenticated attacker make WordPress include a PHP file from elsewhere on the server, which can lead to remote code execution. Every version from 4.7.0 to 7.1.1 is affected.
The WordPress.org release post describes the bug in plain terms: page template resolution could be steered to a readable local PHP file outside the active theme's folders. It credits researcher Robert Ressl for responsible disclosure and says to update immediately.
Patchstack's technical write-up explains why it's serious. The flaw sits in `get_page_template()`, and a value from the visitor's request was used to build template filenames without passing through WordPress's own traversal check. No login, no account and no click from anyone on your team is needed.
That's the part owners should hear. This isn't a plugin you forgot to remove. It's WordPress core, and the attacker doesn't need a password.
Which WordPress sites are exposed to CVE-2026-87902?
Any site running WordPress 4.7.0 through 7.1.1 has the vulnerable code. Whether an attacker can go all the way to running code depends on the theme and the server.
Patchstack puts it as file inclusion always, code execution when the host lines up. The conditions it lists are an active theme with a top-level folder whose name starts with `page-`, a readable PHP file such as PEAR's `pearcmd.php` somewhere on the server, and PHP's `register_argc_argv` setting switched on, which it says is the default in official PHP Docker images and on cPanel servers running PHP below 8.5. SecurityWeek names Twenty Twelve, Twenty Fourteen, Neve, Hestia and Sydney among the affected themes.
Don't try to reason your way out of the update with that list. You probably can't see your server's PHP settings, and the fix costs nothing. The timeline also left no room for waiting:
- September 22, 2026: WordPress 7.1.2 ships. The Hacker News reports Patchstack logged the first exploitation attempt at 11:49 UTC that same day.
- September 24, 2026: Help Net Security updates its story with Patchstack's note that attackers were using `pearcmd.php` to write PHP files to disk, that public scanning tools were circulating, and that attack traffic was running at more than ten times the first evening's volume.
- September 25, 2026: CISA adds CVE-2026-87902, listed as a WordPress Core Remote File Inclusion Vulnerability, to its Known Exploited Vulnerabilities catalog. Federal civilian agencies were given until September 28 to fix it.
| If your site runs | Update to at least | Notes |
|---|---|---|
| 7.1.0 or 7.1.1 | 7.1.2 | The current release |
| 7.0.x | 7.0.6 | Backported fix |
| 6.9.x | 6.9.9 | Backported fix |
| 6.8.x | 6.8.10 | Backported fix |
| Any older branch back to 4.7 | The latest release in that branch | Fixes go down to 4.7.37; WordPress calls these a courtesy and only supports the newest version |
| Older than 4.7.0 | Not affected by this CVE | Running years-old software is its own emergency |
The 15-minute owner check
You don't need a developer to find out whether you're patched. You need an admin login, five minutes in the dashboard and a clear answer on who controls your hosting.
If your site was built years ago by someone who has since moved on, you may not know any of these answers offhand. Work through them in order; each one takes a few minutes.
| Check | Where to look | Good answer | Red flag |
|---|---|---|---|
| Version | Dashboard > Updates, or Tools > Site Health > Info > WordPress | 7.1.2, or the fixed release for your branch | 7.1.1 or lower in a branch that has a fix, or you can't log in to check |
| Automatic updates | Dashboard > Updates (the line describing how the site is kept up to date), and Site Health's status tab | Security and maintenance releases install automatically, with no Site Health warning about background updates | Auto-updates turned off, or a Site Health warning nobody has read |
| Admin access | Users > All Users, filtered by Administrator | You have your own admin account, and you recognize every other admin | You log in with a shared account, or you see names you don't know |
| Hosting access | Your hosting company's control panel | The account is in your company's name and you can sign in | The hosting is billed to a former developer or agency and you've never seen the login |
| Backups | Your host's backup screen or your backup plugin | A recent backup stored somewhere other than the web server | No one can tell you when the last backup ran |
If you can't log in at all
That's the real finding, and it's bigger than this patch. Our website ownership checklist walks through recovering control of your domain, hosting and code before you need them in a hurry.
How do you update WordPress safely?
Take a backup, apply the security release for your branch, then test the pages that bring in business. For a patch release like this one, that usually takes minutes.
A point release like 7.1.2 is small by design, and WordPress published fixed versions for every branch back to 4.7, so an old site can take the fix without jumping to a new major version. That lowers the risk of breakage a lot. It doesn't remove it on a site that's been heavily customized.
- Back up files and the database first, and download a copy or confirm it's stored off the server.
- On a simple brochure site, update from Dashboard > Updates. WordPress's own post says sites that support automatic background updates will start the process themselves.
- On a heavily customized site, or one where someone edited WordPress core files directly, apply the update on a staging copy first. Many hosts offer one-click staging.
- After updating, test the contact form, booking flow, phone click-to-call, checkout if you have one, and the pages your ads point to.
- If a plugin or theme breaks, don't roll WordPress back to 7.1.1. Deactivate the plugin that broke, or switch temporarily to a default theme, and fix the plugin. Going back to the vulnerable version is the one option that's off the table.
Updated but already hacked: signs you were hit before you patched
An update closes the door. It doesn't remove anything an attacker left inside while the door was open.
Attacks started on release day, so a site that updated on September 23 or later had a window. The Hacker News reported file names seen in these attacks, including `wp-pear-rce-flag.php`, `poc87902.php`, and files starting `luci_` or `zeta_` followed by random characters, written to `/tmp/` and `/var/tmp/`. Your developer or host can search for those. You can check the rest:
- Administrator accounts you don't recognize, or familiar accounts whose email address changed.
- PHP files in `wp-content/uploads`, which should normally hold images and documents.
- Recently modified files in the theme or plugin folders that nobody on your side touched.
- Visitors, especially on phones or arriving from Google, being redirected to other sites.
- Pages you didn't write showing up in a `site:yourdomain.com` Google search, often pharmacy, casino or replica-goods spam in other languages.
- A warning in Google Search Console's Security Issues report, or an email from your host about malware or unusual outbound mail.
If you find any of these
Don't just delete the file you spotted and move on. Change every admin, hosting, database and FTP password, have someone look for the other files that usually come with the first one, and restore from a backup taken before September 22 if the damage is wide. Then check Search Console until any spam pages drop out.
After the patch: what hardening actually helps?
Hardening won't stop the next core vulnerability, but it limits what an attacker can do and how long a compromise goes unnoticed.
WordPress's own hardening guide makes a point that fits this week well: once a vulnerability is fixed, the information needed to exploit it is almost certainly public. That's exactly what happened here. The basics that matter most for a small-business site:
- Least-privilege accounts: one administrator per real person, editors for people who only publish, and no shared logins.
- Turn off the dashboard file editor by adding `define( 'DISALLOW_FILE_EDIT', true );` to `wp-config.php`. The guide notes this stops code edits through the dashboard but won't stop file uploads.
- A web application firewall, either at your host, through a CDN, or from a security vendor. Patchstack says its customers were covered by a mitigation rule for this CVE.
- Off-site, dated backups you have restored at least once, so you know they work.
- Automatic security updates left on. Most small-business sites are far safer auto-patched than waiting for a human to notice.
Does your maintenance plan really exist?
A maintenance plan is only real if someone can tell you, with dates, when your site was last updated, backed up and checked.
Plenty of businesses pay a monthly fee to a developer or host and assume that covers this. This week is a good test. Send these questions and see how quickly, and how specifically, they come back:
- Which WordPress version is the site on right now, and when was 7.1.2 or the branch fix applied?
- Are automatic security updates on? If not, why not, and who applies them?
- When was the last backup, where is it stored, and when did anyone last test a restore?
- Did you check for signs of compromise after this CVE, or only apply the update?
- Who has admin and hosting access today, and can you send me a list?
- If the site were hacked tomorrow, what does our plan include and what costs extra?
How to read the answers
A good provider answers with dates and version numbers. A vague reply, a promise to check, or silence tells you the plan exists on an invoice and nowhere else. That's worth knowing now rather than after a customer tells you your site redirects to a casino. If you're curious how much automated traffic is probing sites like yours, our piece on bots outnumbering humans online covers the wider picture.
When should you get help?
Get help the same day if you can't log in, if your version is still below the fix, or if you found any sign of compromise. That's emergency work: update, clean, change credentials and confirm Google isn't flagging the site.
Get a proper care plan if the update went fine but nobody could answer the maintenance questions above. Monthly updates, tested backups and someone checking the site after every security release cost less than one cleanup.
Consider a rebuild if the site runs an abandoned theme, relies on plugins that no longer get updates, or was built by someone you can no longer reach. Our comparison of WordPress, Webflow and Squarespace can help you decide whether to stay on WordPress or move to a platform that handles updates for you.
Pixel2Tech's WordPress and Shopify team handles all three: emergency updates and malware checks, ongoing maintenance, and migrations off builds nobody is looking after anymore.
Sources and further reading
- WordPress.org: WordPress 7.1.2 Security Release (September 22, 2026)
- Help Net Security: CVE-2026-87902 and the WordPress 7.1.2 security release
- Patchstack: WordPress 7.1.2 security release, unauthenticated LFI to RCE
- The Hacker News: Attackers exploit WordPress CVE-2026-87902 within hours of disclosure
- CISA: CISA adds one known exploited vulnerability to catalog (September 25, 2026)
- WordPress Developer Resources: Hardening WordPress
Frequently asked questions
What is CVE-2026-87902?
It's a critical WordPress core vulnerability, rated 9.2 under CVSS 4.0, in the page template function get_page_template(). An unauthenticated attacker can make WordPress include a readable PHP file from outside the theme folders, which can lead to remote code execution when certain theme and server conditions are met. WordPress 7.1.2 fixed it on September 22, 2026.
Which WordPress versions are affected?
Every version from 4.7.0 through 7.1.1. WordPress released 7.1.2 plus fixed versions for older branches, including 7.0.6, 6.9.9 and 6.8.10, down to 4.7.37. If you're on an older branch, update to the latest release in that branch or, better, to 7.1.2.
Did my site update to WordPress 7.1.2 automatically?
It should have if automatic background updates are working, since WordPress pushes security releases that way. Check Dashboard > Updates or Tools > Site Health > Info to confirm the version. Some hosts and developers turn auto-updates off, so don't assume it happened.
Is my site safe once I've updated?
It's safe from new attempts against this flaw, but not necessarily clean. Exploitation attempts started on September 22, the day of the release, so check for unknown admin users, unfamiliar PHP files, redirects and spam pages in Google, and have a professional look if anything seems off.
Can updating WordPress break my site?
A security point release rarely does, but heavily customized sites or outdated plugins can conflict. Back up first, use a staging copy if the site is complex, and if something breaks, fix or disable the plugin or theme rather than going back to the vulnerable version.
About the author: Pixel2Tech Team
Pixel2Tech is a Lahore studio for brand, web, video and automation work. We write about problems we see in client projects.
Meet the teamNot sure your site got the WordPress 7.1.2 fix?
Send us your URL. Pixel2Tech will confirm your WordPress version, apply the fix for your branch, check for the files and accounts this attack leaves behind, and tell you plainly whether your current maintenance setup is doing its job.
Related articles

Web Development ·
Do You Own Your Website? Domain, Hosting & Code Checklist
Audit who controls your domain, hosting, email, platform accounts, analytics and code rights, then use a handover checklist before the final payment.
Web Development ·
Bots Have Officially Taken Over the Internet — Here's What It Means for Your Website in 2026
Bot traffic has officially surpassed human traffic in 2026. Learn how this affects your website, analytics, and security — and how Pixel2Tech can help.

Web Development ·
WordPress vs Webflow vs Squarespace for a Service Business Site
WordPress, Webflow and Squarespace compared for law firms, clinics and contractors: editing, lead capture, exit costs and three-year subscription cost.

Web Development ·
Website Redesign Cost for Small Businesses: Line-by-Line Budget
What a small business website redesign costs, line by line: design, build, content, SEO migration and accessibility, plus a worksheet to fill in before quotes.
Related Pixel2Tech services
Get new articles by email
Leave your email and we'll send new posts when they're published.