Opens in a new tab
Severity: Critical

CVE-2026-87902 · published 22 September 2026

WordPress: Local file inclusion through template selection

In certain configurations, an unauthenticated attacker may include a readable local PHP file. Under additional conditions, this can lead to code execution.

Component
WordPress
ID
CVE-2026-87902
Severity
Critical
Affected versions
7.1–7.1.1. See vendor backports for earlier branches.
Published
22 September 2026
Status
Confirmed vulnerability

What you need to do

Install 7.1.2 or a later patched release, or the patch for your current branch.

Sources

Is your site vulnerable?

Install the free qStom Security Check plugin: it checks your WordPress, PHP, theme and plugin versions and alerts you to vulnerabilities that apply to your site. We can also handle regular updates with backups as part of website maintenance.