CVE-2026-87902
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.
Severity
HIGH
CVSS v3
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H · source adp
Exploit chance (EPSS)
95.769%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2026-09-25
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 1
Exploit-DB: 1
Weakness
- CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | WordPress Core Remote File Inclusion Vulnerability |
|---|---|
| Vendor / product | WordPress / Core |
| Date added | 2026-09-25 |
| Federal remediation due date | 2026-09-28 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-09-25 |
Timeline
- 2026-09-22Published by the CNA16:44 UTC
- 2026-09-25Added to the CISA KEV catalog3 days after publication
- 2026-09-25CISA SSVC decision recorded3 days after publication
- 2026-10-01First Exploit-DB entry (EDB-ID 52690)9 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 52690 | webapps | multiple | 2026-10-01 | no |
Nuclei templates:
- CVE-2026-87902: WordPress Core - PHP Template Path Traversal
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| wordpress wordpress | before 4.7.37fixed in 4.7.37from 4.8 before 4.8.32fixed in 4.8.32from 4.9 before 4.9.33fixed in 4.9.33from 5.0 before 5.0.29fixed in 5.0.29from 5.1 before 5.1.26fixed in 5.1.26(+20 more) | 4.7.374.8.324.9.335.0.295.1.26 |
References
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp
- https://patchstack.com/articles/cve-2026-87902-attackers-started-probing-wordpress-sites-hours-after-the-patch/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-87902
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-87902'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-87902'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-87902'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-87902'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2026-87902'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).