The developers of WordPress released a security patch for its core software to address a vulnerability that allows remote attackers to execute code on affected websites without logging in. Tracked as CVE-2026-87902, the critical flaw affects all versions of WordPress Core up to and including 7.1.1 and is resolved in the new version 7.1.2. The vulnerability is a Local File Inclusion (LFI) issue residing within the locate_template() function.
The exploit targets the page template resolution mechanism, allowing an attacker to force the system to include readable local PHP files located outside the active theme directory. Security researchers have assigned the flaw a CVSS score of 9.2, and a proof-of-concept exploit has been published on GitHub. While exploitation depends on specific theme and server configurations, all users are urged to update their installations immediately.
