What’s Vulnerable › Vulnerabilities

CVE-2026-87902: WordPress Core Remote File Inclusion Vulnerability

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.

Affected products

How to fix

Upgrade to a fixed version: WordPress 4.7.37, 4.8.32, 4.9.33, 5.0.29. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-87902 or the next vulnerability affects your stack