CVE-2026-87902: An unauthenticated attacker can make `get_page_template()` page-template resolution include a chosen readable local `.php` file outside t…

CVE-2026-87902 affects 177 listed versions of WordPress in the Dawnsentry catalogue. It is known to be exploited in the wild.

8.1CVSS high
In CISA's KEV catalogue since 2026-09-25exploitation
96%EPSS (next 30 days)
22 September 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

WordPress

177 of 250 listed versions are affected. Fixed in 7.1.2, 7.0.6, 6.9.9, 6.8.10, 6.7.9, 6.6.9, 6.5.12, 6.4.12. The newest release, 7.1.5, is not affected.

7.1.1 7.1 7.0.5 7.0.4 7.0.3 7.0.2 7.0.1 7.0 6.9.8 6.9.7 6.9.6 6.9.5 6.9.4 6.9.3 6.9.2 6.9.1 6.9 6.8.9 6.8.8 6.8.7 6.8.6 6.8.5 6.8.4 6.8.3 6.8.2 6.8.1 6.8 6.7.8 6.7.7 6.7.6 6.7.5 6.7.4 6.7.3 6.7.2 6.7.1 6.7 6.6.8 6.6.7 6.6.6 6.6.5 6.6.4 6.6.3 6.6.2 6.6.1 6.6 6.5.11 6.5.10 6.5.9 6.5.8 6.5.7 6.5.6 6.5.5 6.5.4 6.5.3 6.5.2 6.5.1 6.4.11 6.4.10 6.4.9 6.4.8 and 117 more

What it is

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.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (Hackerone)

Published by Hackerone on 22 September 2026. Last changed 28 September 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2026-87902 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.