CVE-2026-87902
An unauthenticated attacker can make getpagetemplate() 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.
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-87902, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87902.json, https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp, https://nvd.nist.gov/vuln/detail/CVE-2026-87902, https://patchstack.com/articles/cve-2026-87902-attackers-started-probing-wordpress-sites-hours-after-the-patch/