CVE-2026-87902 WordPress Core Remote File Inclusion
Unauthenticated attackers can include arbitrary local PHP files via page template resolution, potentially leading to remote code execution under specific server and theme conditions.
- Exploited in the wild
- Since 25 Sep 2026
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-87902?
CVE-2026-87902 is a high-severity vulnerability in Wordpress Wordpress, published on 22 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-98
Which versions are affected by CVE-2026-87902?
2 open source packages ship an affected version, including wordpress and wordpress-multisite. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
wordpress Bitnami | All versions | 7.1.2 |
wordpress-multisite Bitnami | All versions | 7.1.2 |
Products include Wordpress Wordpress.
How do I fix CVE-2026-87902?
Upgrade wordpress to 7.1.2 or later. US federal agencies must fix it by 28 Sep 2026.
Is CVE-2026-87902 being exploited?
Yes. Attackers have exploited CVE-2026-87902 in the wild since at least 25 Sep 2026.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 25 proofs of concept on GitHub.
Other vulnerabilities in Wordpress Wordpress
Sources
Also known as BIT-wordpress-2026-87902, BIT-wordpress-multisite-2026-87902, DEBIAN-CVE-2026-87902, MINI-469p-w96q-xx8p, MINI-h4qc-wjw9-5pwc, UBUNTU-CVE-2026-87902.