draft preview · not published · notes marked "Before launch" will not appear on the live site

Home / Known exploited

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

Exploited in attacksPublic exploit code

Yes. CVE-2026-87902 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 25 September 2026. Public exploit code is available: 1 Exploit-DB entry and a Nuclei detection template. EPSS puts the chance of further exploitation attempts in the next 30 days at 95.8%.

Exploited in real attacks
Yes. On CISA's exploited list since 25 September 2026
Used in ransomware
Not known
Public exploit code
1 Exploit-DB entry and a Nuclei detection template
Chance of exploitation (EPSS)
95.8% in the next 30 days, higher than 99.9% of scored vulnerabilities. Scored 5 December 2026
Severity (CVSS)
8.1 High (version 3.1)
Affects
WordPress Core
Type of flaw
Remote File Inclusion (CWE-98)
Published
22 September 2026
US federal patch deadline
28 September 2026

What it is

WordPress Core contains a remote file inclusion vulnerability which could allow an unauthenticated attacker to make page-template resolution include a chosen readable local `.php` file outside the active theme directories, leading to remote code execution.

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.

Description from the CVE record.

Is CVE-2026-87902 being exploited?

Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2026-87902 on 25 September 2026. That was 3 days after the CVE was published.

Public exploit code

These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.

SourceEntryPublished
Nuclei templateWordPress Core - PHP Template Path Traversal
Exploit-DBWordPress 7.0.2 - Path Travesal1 October 2026

Affected products

From the CVE record. Check the vendor advisory for the full list of fixed versions.

What to do

CISA's required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.

How to check whether you are exposed

  1. Find every copy. List each place WordPress Core runs, including test systems and anything set up outside IT.
  2. Compare versions. Match what you find against the affected versions in the vendor advisory.
  3. Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
  4. Assume it has been scanned. A public Nuclei template exists for this flaw, so finding exposed systems across the internet is automated.

HackDrill

Find out whether this is reachable in your systems.

A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in Core. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.

Other tracked vulnerabilities in WordPress products

CVEWhat it affectsStatusEPSSPublished
CVE-2026-119977WordPress CorePublic exploit57.1%31 October 2026
CVE-2026-63030WordPress CorePublic exploit96.3%17 July 2026
CVE-2026-60137WordPress CorePublic exploit89.1%17 July 2026
CVE-2020-11738WordPress Snap Creek Duplicator PluginPublic exploit98.2%13 April 2020
CVE-2020-25213WordPress File Manager PluginPublic exploit97.3%9 September 2020
CVE-2019-9978WordPress Social Warfare PluginPublic exploit72.9%24 March 2019

Sources

Machine-readable: /api/cve/CVE-2026-87902.json