WordPress Remote File Inclusion Vulnerability - CVE-2026-87902
WordPress is vulnerable to a Remote File Inclusion vulnerability in the page template resolution mechanism. An unauthenticated attacker can make get_page_template() include a chosen readable local .php file outside the active theme directories. If the relevant pre-conditions for both the server and the active theme are met this can lead to Remote Code Execution. This issue affects all versions of WordPress prior to 7.1.2. Version 7.1.2 has been released containing a fix for the vulnerability and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7.