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.
do firstApply 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.
Can a WAF block it? Partly. Cloudflare publishes WAF a rule written for this CVE. Such rules block the known exploit requests and buy time, but attackers can change the request to get past them, so they do not replace the patch.
Cloudflare · 1 rule (Block) · since 25 Sept 2026
- Wordpress - Path Traversal, Local File Inclusion - CVE:CVE-2026-87902 · Cloudflare Managed Ruleset
Also consider: patch · enable the vendor rule in block mode
Based on WAF vendor rules published for this CVE. We check Cloudflare, AWS, Google Cloud Armor and Azure; for Akamai, Imperva, Fastly, F5, ask your vendor.
Is CVE-2026-87902 being exploited?
Yes. CVE-2026-87902 appears in CISA's Known Exploited Vulnerabilities catalog, which means exploitation in the wild has been confirmed and reported. Treat it as active rather than theoretical, and patch it ahead of higher-scoring vulnerabilities that carry no exploitation evidence.
How severe is CVE-2026-87902?
CVE-2026-87902 is rated High with a CVSS score of 8.1. Severity describes how bad exploitation would be, not how likely it is: pair it with exploitation evidence before deciding what to patch first.
Is there a patch for CVE-2026-87902?
Yes. A fix has been recorded for CVE-2026-87902. The vendor advisory is the authority on the exact fixed version — apply it from there rather than from a summary.
What does CVE-2026-87902 affect?
CVE-2026-87902 affects wordpress:wordpress. Confirm the exact affected versions against the vendor advisory before deciding you are exposed.
Exploitation status reflects CISA's KEV catalog as we last synced it. Check the catalog directly.
- affected< 7.1.2
As published in the CVE Program record. A version outside these ranges is not a statement that it is unaffected — vendors sometimes understate a range, and distribution-backported builds carry upstream numbers that do not reflect what was patched into them.
public exploits
Public exploit code: 1 on Exploit-DB · 25 GitHub proofs of concept · 1 Nuclei template
- WordPress 7.0.2 - Path Travesal · webapps · 1 Oct 2026
- WordPress Core - PHP Template Path Traversal · detection template · critical
- ressl/cve-2026-87902-poc · 44 ★
- abraxas/CVE-2026-87902 · 36 ★
- tc4dy/CVE-2026-87902-Toolkit · 15 ★
- dinosn/cve-2026-87902-wordpress-lfi-lab · 13 ★
Listed so you can judge urgency, not as a recommendation to run anything. GitHub “proofs of concept” are unvetted: some are fake or carry malware. Exploit-DB marks the entries its staff verified.
cisa ssvc
- exploitation
- active
- automatable
- no
- technical impact
- total
Assessed by CISA 25 Sept 2026 (SSVC 2.0.3).
timeline
- 22 Sept 2026First public exploit or proof of concept
- 22 Sept 2026Published · 1 day later
- 25 Sept 2026Added to CISA KEV (exploited in the wild) · 2 days later
- 25 Sept 2026CISA SSVC assessment: exploitation active · same day later
- 26 Sept 2026CVE record last updated · 1 day later
- 28 Sept 2026CISA remediation due date (US federal agencies) · 2 days later
- 2 Nov 2026Analysed by vulneraibility.com · 36 days later
- Advisorypatchstack.com /articles/cve-2026-87902-attackers-started-probing-wordpress-sites-hours-after-t
- Linkgithub.com /WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp
- Linkcisa.gov /known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-87902
sources
- CVE List (CVE.org): description, affected versions, references; CVE Terms of Use
- NVD: CVSS and CPE data
- CISA KEV catalog: exploitation, date added, due date
- CISA Vulnrichment (ADP): SSVC decision points
- FIRST EPSS: exploit probability and percentile
- Exploit-DB: published exploits
- Nuclei templates: detection templates
- PoC-in-GitHub: GitHub repositories that claim a proof of concept
- Summary, impact and triage tags: written by our AI analysis pipeline from the sources above. Check them against the sources.