CVE-2026-87902 in Wordpress
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Wordpress | Wordpress | < 4.7.37 ≥ 4.8, < 4.8.32 ≥ 4.9, < 4.9.33 ≥ 5.0, < 5.0.29 ≥ 5.1, < 5.1.26 ≥ 5.2, < 5.2.28+18 more≥ 5.3, < 5.3.25 ≥ 5.4, < 5.4.23 ≥ 5.5, < 5.5.22 ≥ 5.6, < 5.6.21 ≥ 5.7, < 5.7.19 ≥ 5.8, < 5.8.17 ≥ 5.9, < 5.9.18 ≥ 6.0, < 6.0.16 ≥ 6.1, < 6.1.14 ≥ 6.2, < 6.2.13 ≥ 6.3, < 6.3.12 ≥ 6.4, < 6.4.12 ≥ 6.5, < 6.5.12 ≥ 6.6, < 6.6.9 ≥ 6.7, < 6.7.9 ≥ 6.8, < 6.8.10 ≥ 6.9, < 6.9.9 ≥ 7, < 7.1.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Yes added 2026-09-25 |
|---|---|
| Public exploit | Reported · reference |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-87902 |
|---|---|
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-09-22 |
| Last modified | 2026-09-28 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-98: CWE-98
Related attack patterns (CAPEC)
CAPEC-193 PHP Remote File Inclusion via CWE-98
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A high severity vulnerability (CVE-2026-87902) affects the target system. 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 ca...
Questions
What is CVE-2026-87902?
A high severity vulnerability (CVE-2026-87902) affects the target system. 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 ca...
What is the CVSS score for CVE-2026-87902?
CVE-2026-87902 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 26.7%.
Is CVE-2026-87902 actively exploited?
Yes. CVE-2026-87902 is in the CISA known-exploited catalog (added 2026-09-25). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2026-87902?
Apply vendor patches for CVE-2026-87902. Monitor Wordpress advisories.
What systems are affected by CVE-2026-87902?
CVE-2026-87902 affects Wordpress Wordpress.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Wordpress","product":"Wordpress","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-09-28.