Sovra Recon·Actively exploited

CVE-2026-87902WordPress Core Remote File Inclusion Vulnerability

At a glance

CVE-2026-87902 is a high-severity vulnerability (CVSS score 8.1) affecting Core (WordPress). CISA has confirmed that attackers have been exploiting it since September 25, 2026.

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.

Our take

An attacker with no account can make WordPress include a PHP file present on the server, outside the theme, which can lead to code execution. The vendor specifies that certain server-side and theme-side conditions must be met: not every site is exploitable, but the vulnerability is confirmed as exploited.

Update WordPress core, and take the opportunity to clean up: .php backups, old installation scripts or test files left on the hosting account are precisely the kind of files an inclusion like this goes looking for.

By Solan Barlet, co-founder of Sovra Recon · October 30, 2026

Details

The vulnerability in detail

CVE ID
CVE-2026-87902
Vendor
WordPress
Product
Core
Severity (CVSS)
High · 8.1 / 10
Published
September 22, 2026
Actively exploited
Yes, confirmed by CISA on September 25, 2026
Used in ransomware
Not reported
CERT-FR advisory (in French)
CERTFR-2026-AVI-1216
Weakness type (CWE)
CWE-98

What to do

How to protect against CVE-2026-87902

  • Check whether you are affected: Run php -v on the server (or display phpinfo() on a non-public page) and compare the version with the patched versions listed in the security advisory.
  • Apply the vendor's patch as a priority on Internet-facing systems, since this vulnerability is already being exploited.
  • If no patch is available, apply the published workarounds or take the service off the Internet.
  • Look for signs of compromise: a vulnerability exploited before you patched may already have been used. Review your logs and the indicators published by the vendor.

Sources

Official descriptions from NVD and CISA, in their original wording.

Patching a CVE is not enough.

The vulnerabilities specific to your application have no CVE. Our AI agents hunt for them by actually attacking your systems.