ConicPlex

Start Your Project

A laptop glowing with WordPress-blue light on a desk beside a loose sheet of paper sliding out of a stack of folders, symbolizing a WordPress core file inclusion vulnerability

On this Page

WordPress 7.1.2 Patches a Critical Unauthenticated File Inclusion Flaw (CVE-2026-87902)

Aftab Memon

September 23, 2026

WordPress released version 7.1.2 on September 22, 2026 to patch CVE-2026-87902, a critical, unauthenticated file inclusion flaw in how core resolves page templates. It carries a CVSS score of 9.2, affects every release from 4.7.0 through 7.1.1, and can lead to remote code execution on servers with certain PHP configurations. Attackers were already probing live sites for it within five hours of the patch going out.

What CVE-2026-87902 Actually Does

The bug sits in WordPress’s get_page_template() logic. According to WordPress’s own release announcement, an unauthenticated attacker can, under certain conditions, make page template resolution include a readable local PHP file from outside the active theme’s directory. Security researcher Robert Ressl reported the issue responsibly, and Patchstack’s writeup breaks down the mechanics: the exploit sends a request with a valid page_id alongside a double-encoded directory traversal sequence in the pagename parameter. WordPress’s sanitization preserves the escaped characters and only decodes them later, during template lookup, which lets the traversal slip past the initial filter.

No login is required. Depending on server configuration, a successful hit can go beyond reading arbitrary local files to actually executing code.

Who Needs to Act, and How Fast

Anyone running a WordPress install anywhere between 4.7.0 and 7.1.1 is affected, which is close to every WordPress site currently online that hasn’t already updated. WordPress backported the fix unusually far back, all the way to 4.7.37, alongside point releases 7.0.6, 6.9.9 and 6.8.10 for sites still on older branches.

Patchstack recorded the first probing traffic at 17:44 UTC on September 22, less than five hours after the patch shipped. The requests so far are reconnaissance, not payload delivery: scanners hitting core files like wp-links-opml.php, wp-includes/functions.php and wp-cron.php to fingerprint which hosts are still vulnerable. That window closes fast once a working exploit chain starts circulating publicly.

What to Do Right Now

  • Update to 7.1.2 (or the matching point release for your branch) immediately if auto-updates haven’t already applied it.
  • Check server logs for requests combining page_id and pagename parameters, especially with %252e%252e traversal sequences, since that combination rarely shows up in normal traffic.
  • Watch for unexpected OPML output or raw PHP source appearing on what should be a normal page URL.

This is separate from the Click2Shell theme-installation bug WordPress patched a few days earlier in 7.1.1, so updating for one doesn’t cover the other; sites need to be current on 7.1.2 specifically. For agencies managing a portfolio of client sites, this is exactly the kind of release where staying current across every install matters more than the individual fix itself. ConicPlex’s WordPress Development work includes keeping core and plugin versions current for clients so a patch like this doesn’t sit unapplied for days while sites get scanned.

Sources

Aftab Memon is a Senior WordPress Developer at ConicPlex, working across everything from plugin conflicts and theme customization to full site builds on Elementor and WooCommerce. He spends most of his time in the parts of WordPress that don’t show up in a features list: hosting quirks, hook priority, the difference between a plugin that works in isolation and one that survives a real production stack. He writes here about what actually holds up once a WordPress site is live and being run by a non-technical client, not just what works in a demo.

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading

Software

A laptop and smartphone glowing with soft purple light beside stacked shipping boxes on a desk, representing automated ecommerce order data flowing behind the scenes of a WooCommerce store

Is Your WooCommerce Store Ready for AI Shopping Agents?

WooCommerce shipped an experimental Model Context Protocol layer and an adapted Claude Commerce Agent in 2026, but agentic checkout is…

Aftab Memon

September 23, 2026

Plugins

Illustration of a free shipping progress bar with a package icon approaching a finish flag, representing WooCommerce free shipping bar plugins

Best WooCommerce Free Shipping Bar Plugins: 4 Real Options Compared

Four real WooCommerce free shipping bar plugins compared on price, requirements, and maintenance, with setup steps and an honest recommendation…

Husen Memon

September 23, 2026

Plugins

Flat illustration of a shopping cart with a purple arrow arcing over it to a checkmark, representing a WooCommerce buy now button that skips the cart page

Best WooCommerce Buy Now Button Plugins: 4 Real Options Compared

Compare 4 real WooCommerce buy now button plugins that skip the cart page, with real prices, requirements, and setup steps…

Sajil Memon

September 22, 2026

WhatsApp
Husen Memon
Husen Memon
Typically replies instant