WordPress Core Remote File Inclusion Vulnerability
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.
What happened
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.
CISA lists it as exploited, added 25 Sep 2026.
Does it affect you
Names WordPress WordPress core. Enter the product and version you run to place it against the affected range the vendor published.
What to do
- Follow the vendor advisory for the fixed release and any interim mitigation.
github.com - 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.
cisa.gov
CISA’s notes for this entry:
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp
- BOD 26-04: cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- Forensics Triage Requirements: cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
- nvd.nist.gov/vuln/detail/CVE-2026-87902
Affected, as published to NVD
- wordpress
- WordPress WordPress core: everything below 4.7.37
The record
- NVD status
- Analyzed
- Published
- 22 Sep 2026, last modified 28 Sep 2026 (NVD)
- Severity
- CVSS 3.1 base score 8.1, High — computed here from the vector; NVD states 8.1.
- Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-98 (NVD; names by MITRE)
- Exploitation
- Listed in CISA’s Known Exploited Vulnerabilities catalogue since 25 Sep 2026; federal remediation due 28 Sep 2026. CISA entry
- Vendor
- WordPress · Core (CISA)
References on the NVD record
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whpVendor Advisory
- patchstack.com/articles/cve-2026-87902-attackers-started-probing-wordpress-sites-hours-after-the-patch/Third Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-87902US Government Resource
Reporting that names this identifier
- CISA Adds One Known Exploited Vulnerability to Catalog — CISA, 4 d ago
- Critical WordPress Vulnerability Exploited Immediately After Disclosure — SecurityWeek, 5 d ago
- Attackers Exploit WordPress CVE-2026-87902 Within Hours of Disclosure — The Hacker News, 5 d ago
- Hackers start exploiting critical WordPress flaw for code execution — BleepingComputer, 6 d ago
- WordPress 7.1.2 fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902) — Help Net Security, 6 d ago
Sources
The verdict above is computed from the products and versions you entered and the affected ranges the vendor published to NVD. It does not inspect your environment, and this site never reports a product as unaffected: why.