Skip to main content
ExploitedIn CISA KEVFix available

CVE-2026-87902

Exploitation confirmed. First attested on 2026-09-23 by CISA-ADP, CISA KEV, ENISA EUVD, GCVE · enisa-cnw-kev, GCVE · previdian.

  • Published2026-09-22
  • Fixed in7.1.2 · 7.0.6 · 6.9.9 · 6.8.10 · 6.7.9 · 6.6.9
  • WeaknessCWE-98

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-09-2217:17CVE publishedNVD
  2. 2026-09-23Reported as exploited by ENISA (EUVD)ENISA EUVD
  3. 2026-09-23Listed as exploited by GCVEGCVE
  4. 2026-09-23Exploitation first reportedGCVE
  5. 2026-09-25Added to the CISA KEV catalogCISA KEV
  6. 2026-09-2519:40SSVC exploitation set to activeCISA-ADP
  7. 2026-10-01Exploit-DB entryExploit-DB

Versions per branch

NVD · OSV
WordPress
BranchAffectedFixed in
7.1≥ 7.1, < 7.1.27.1.2
7.1< 7.1.27.1.2
7.0≥ 7.0, < 7.0.67.0.6
6.9≥ 6.9, < 6.9.96.9.9
6.8≥ 6.8, < 6.8.106.8.10
6.7≥ 6.7, < 6.7.96.7.9
6.6≥ 6.6, < 6.6.96.6.9
6.5≥ 6.5, < 6.5.126.5.12
6.4≥ 6.4, < 6.4.126.4.12
6.3≥ 6.3, < 6.3.126.3.12
6.2≥ 6.2, < 6.2.136.2.13
6.1≥ 6.1, < 6.1.146.1.14

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As hackerone, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • WordPressother versions: not affected
    Affected
    • < 7.1.2fixed in 7.1.2semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-09-22

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • wordpressUbuntu:26.10all versions · no fixed version listed
  • wordpressUbuntu:26.04:LTSall versions · no fixed version listed
  • wordpressUbuntu:24.04:LTSall versions · no fixed version listed
  • wordpressUbuntu:22.04:LTSall versions · no fixed version listed
  • wordpressUbuntu:20.04:LTSall versions · no fixed version listed
  • wordpressUbuntu:18.04:LTSall versions · no fixed version listed
  • wordpressUbuntu:16.04:LTSall versions · no fixed version listed
  • wordpressDebian:14all versions · fixed in 7.1.2+dfsg1-1

4 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-87902 Red Hat Product Security

    wordpress: WordPress: Remote code execution via page template resolution vulnerability

Full record on NVD

Fix

  1. Update WordPress to 7.1.2 · 7.0.6 · 6.9.9 · 6.8.10 · 6.7.9 · 6.6.9 · 6.5.12 · 6.4.12
  2. 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.due 2026-09-28

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
EDB-52690
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

CISA Known Exploited Vulnerability

Date Added
2026-09-25
Patch Due Date
2026-09-28
Ransomware Use
Unknown
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.

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2026-09-22
Last Modified
2026-09-28
NVD status
Analyzed
GitHub Advisory
GHSA-7hp8-65ch-5whp

Frequently asked questions

What is CVE-2026-87902?

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.

Is CVE-2026-87902 actively exploited?

Yes. CVE-2026-87902 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning it has been confirmed as actively exploited in the wild. CISA requires federal agencies to patch by 2026-09-28.

What is the CVSS score for CVE-2026-87902?

CVE-2026-87902 has a CVSS v3 base score of 8.1 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running WordPress? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record