CVE-2026-87902: WordPress Core Remote File Inclusion Vulnerability
CVE-2026-87902 is a high-severity flaw (CVSS 8.1) affecting wordpress, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 40.0% (top 1%) |
| CISA exploited list | Yes, fix due 2026-09-28 |
| Weakness | CWE-98 |
| Published | 2026-09-22 |
| Last modified | 2026-09-28 |
Last updated 2026-09-28 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: ressl/cve-2026-87902-poc (43 stars)
- GitHub PoC: abraxas/CVE-2026-87902 (35 stars)
- GitHub PoC: tc4dy/CVE-2026-87902-Toolkit (14 stars)
- Write-up: patchstack.com/articles/cve-2026-87902-attackers-started-probing-wordpress-sites-hours-aft
- Exploit-DB: WordPress 7.0.2 - Path Travesal
- Nuclei scan template: WordPress Core - PHP Template Path Traversal
Advisories and coverage
Research and news
- Patchstack: WordPress 7.1.3 Security Release 2026-10-06
- Patchstack: CVE-2026-87902: Attackers Started Probing WordPress Sites Hours After the Patch 2026-09-22
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-87902?
wordpress: upgrade to 4.7.37, 4.8.32, 4.9.33, 5.0.29, 5.1.26, 5.2.28, 5.3.25, 5.4.23, 5.5.22, 5.6.21, 5.7.19, 5.8.17, 5.9.18, 6.0.16, 6.1.14, 6.2.13, 6.3.12, 6.4.12, 6.5.12, 6.6.9, 6.7.9, 6.8.10, 6.9.9, 7.0.6, 7.1.2. Exact commands for each OS are on this page.
Is CVE-2026-87902 being exploited?
Yes. CVE-2026-87902 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2026-87902 affect?
CVE-2026-87902 affects wordpress. Severity is high (CVSS 8.1). 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 me
How urgent is CVE-2026-87902?
Priority 88/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; Remotely exploitable, no login, no user action
Software pages
WordPress vulnerabilities · PHP vulnerabilities