CVE-2026-87902: High severity WordPress WordPress vulnerability

Published Sep 22, 2026
·
Updated

An unauthenticated attacker can make getpagetemplate() 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 Software

1 affected component
WordPress WordPress

Event History

Sep 22, 2026
CVE Published
via MITRE·04:44 PM
Data Sourced
via MITRE·04:44 PM
DescriptionWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Is authentication required to exploit this issue?

No. The issue can be triggered by an unauthenticated attacker.

2

Does successful exploitation always result in remote code execution?

No. Remote code execution is possible only when relevant preconditions in both the server environment and the active theme are met.

3

What part of the WordPress installation is relevant to exposure?

Exposure involves page-template resolution and the active theme directories. The impact depends on whether the server and active theme meet the necessary preconditions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203