CVEs / CVE-2026-87902
CVE-2026-87902: WordPress Core Remote File Inclusion Vulnerability
- Known exploited in the CISA KEV catalog since 25 Sep 2026
- high 8.1 CVSS 3.1 (from the CNA)
- EPSS 95.7% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2026-87902
Summary
WordPress Core contains a remote file inclusion vulnerability which could allow an unauthenticated attacker to make page-template resolution include a chosen readable local `.php` file outside the active theme directories, leading to remote code execution.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| WordPress WordPress | before 7.1.2 | 7.1.2 |
Exploitation
| In CISA KEV since | 25 Sep 2026 |
|---|---|
| Due date for US federal agencies | 28 Sep 2026 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines. |
Severity
| CVSS 3.1 | 8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HScored by the CNA (134c704f-9b21-4f2e-91b3-4a467353bcc0) |
|---|---|
| Weakness | CWE-98 |
References
- CVE-2026-87902 on NVD
- CVE-2026-87902 in the CISA KEV catalog
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp (cited by CISA)
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk (cited by CISA)
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk (cited by CISA)
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp Vendor Advisory
- https://patchstack.com/articles/cve-2026-87902-attackers-started-probing-wordpress-sites-hours-after-the-patch/ Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-87902 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.