What is CVE-2026-87902?
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.
Source: NVD
- Vendor context
- WordPress · Published Sep 22, 2026
The vendor lists affected and patched versions by branch, including 7.1.2, 7.0.6, 6.9.9 and backports through 4.7.37. Code execution depends on the active theme layout and readable PHP files, with additional prerequisites for the demonstrated PEAR chain.
- Reported activity
- Patchstack · Published Sep 23, 2026
Patchstack's September 23 update reports attempts to write attacker-controlled PHP files, including command-executing payloads. Its September 22 report described reconnaissance.
This is provider-reported attack activity, not evidence that a particular customer's site was compromised.