WordPress core
CVE-2026-87902
Unauthenticated path traversal in page-template resolution leading to conditional RCE
Actively exploited: CISA added it to its Known Exploited Vulnerabilities catalog on 25 Sept 2026.
- Severity
- High 8.1
- Published
- 22 Sept 2026
- Last changed
- 28 Sept 2026
- Added to UpHeron
- 17 Oct 2026
- Fixed in
- 6.6.9, 6.7.9, 6.8.10, 6.9.9, 7.0.6, 7.1.2
- Also known as
- GHSA-7hp8-65ch-5whp
- Sources
- NVD, WordPress
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 software
| Software | Affected versions |
|---|---|
WordPressWordPress core · cpe:a:wordpress:wordpress |
All 26 release lines
|
Known exploited
- CISA name
- WordPress Core Remote File Inclusion Vulnerability
- 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…
- Due for US agencies
- 28 Sept 2026
- Used in ransomware
- Not known
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-87902
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-87902
- GitHub Advisory Database https://github.com/advisories/GHSA-7hp8-65ch-5whp
- WordPress security advisory https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp