LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2026-87902: WordPress Core Remote File Inclusion Vulnerability

RBRecent Breaches Vulnerability Intelligence·Sep 25, 2026
CVSS 8.1 · High⚠ Actively exploited (CISA KEV)
8.1
CVSS score
High
Severity
Active
CISA KEV
No
Ransomware use
Sep 28, 2026
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2026-87902 to its Known Exploited Vulnerabilities catalog on Sep 25, 2026, with a federal patch deadline of Sep 28, 2026 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

An unauthenticated attacker can make `get_page_template()` page-template resolution include a chosen readable local `.php` file outside the active theme directories. If relevant pre-conditions for both the server and the active theme are met, this can lead to RCE.

Overview

CVE-2026-87902 is a remote file inclusion weakness in WordPress Core. In plain terms, an unauthenticated attacker can influence how WordPress resolves page templates so that a readable local .php file outside the active theme directories is included, which can lead to remote code execution on the server.

This matters because WordPress powers a large share of public websites. Unauthenticated reach plus a path to code execution raises the risk of full site compromise, defacement, malware hosting, or further lateral movement. Confirm exact scope, fixed releases, and configuration notes against the vendor advisory before acting.

How it works

The reported weakness is aligned with CWE-98 (improper control of filename for include/require-style operations). WordPress resolves which template file to load for a given request. When that resolution can be steered to include a chosen local readable .php path outside the active theme directories, PHP executes that file in the application context.

An attacker who can trigger the vulnerable template-resolution path without authentication may cause inclusion of an unintended local PHP file. If that file contains (or can be arranged to contain) attacker-controlled logic, the outcome is remote code execution under the web server or PHP process identity. Public detail on exact request parameters, file-selection constraints, and preconditions is limited; treat mechanics as class-level and verify against the official WordPress security advisory.

Am I affected? How to find it in your systems

WordPress Core typically runs as PHP behind a web server (Apache, Nginx, or similar), on self-hosted VMs, shared hosting, containers, or platform-as-a-service. Inventory every property that serves WordPress, including staging, multisite networks, and forgotten marketing sites.

If you cannot confirm the patched state from the vendor advisory, treat internet-facing instances as in-scope until proven otherwise.

How to remediate

Patch first. Apply the WordPress Core update specified in the official vendor advisory for CVE-2026-87902, following your normal change process and CISA’s direction to apply mitigations per vendor instructions and BOD 26-04 risk-based prioritization.

If you can't patch immediately

Compensating controls reduce—but do not eliminate—risk until the vendor fix is applied.

If your data may have been exposed

Actively exploited remote-code-execution flaws in CMS platforms frequently precede full site takeover and data theft, even when ransomware use is not documented for this CVE. If exploitation is plausible, follow incident procedures: isolate, preserve evidence, rotate secrets, audit content and user accounts, and notify stakeholders as required.

You can run a free exposure scan of your email addresses against known breach datasets to see whether associated credentials or personal data already appear in public breach collections, and then force password resets and enable multi-factor authentication where accounts may be reused.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedWordPress · Core
WeaknessCWE-98
CVSS base score8.1 (High)
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
PublishedSep 22, 2026
Added to CISA KEVSep 25, 2026
Federal patch deadlineSep 28, 2026
Known ransomware useNot documented
Check if your data is exposed →

References

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities