PHP file inclusion in WordPress - CVE-2026-87902
Published: September 23, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of the filename for a PHP include statement in get_page_template() page-template resolution when resolving a page template. A remote attacker can cause a chosen readable local PHP file outside the active theme directories to be included to execute arbitrary code.
Exploitation requires an active child or parent theme with a top-level directory whose name begins with "page-" and a chosen local PHP file that is readable by the web server account.