WordPress Core Remote File Inclusion Vulnerability
Exploited in the wild, in CISA KEV since 25 Sep 2026 (due 28 Sep 2026), with 5 public exploits. Fixed in WordPress 7.1.2.
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.
Briefing
Written from the sources below · deepseek-v4.1-flash
CVE-2026-87902 is an unauthenticated local file inclusion in WordPress Core via get_page_template() page-template resolution, potentially leading to RCE when server and active theme pre-conditions are met. It affects WordPress Core.
Why it mattersExploitation is confirmed and listed in CISA KEV, with public exploit material and EPSS 96%, so exposure is high for unpatched sites.
ActionUpgrade WordPress Core per the 7.1.2 release guidance, then check for indicators of template file inclusion.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| WordPress | Core | ||
| WordPress | WordPress | <7.1.2 | 7.1.2 |
Exploit evidence
5 public sources
Vendor advisories
Coverage
News and research mentioning this CVE
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Core, strongest first
Embed
A live severity badge for an advisory, README or ticket