CVE-2026-87902
Exploited in the wild. In CISA KEV since 2026‑09‑25. Only a workaround so far.
What to do
No fixed build is published yet. The vendor describes a workaround.
Steps
Written by AI from the record- Check your WordPress version and whether the latest security update for its release branch is installed.
- If you run WordPress 7.1, update to 7.1.2; fixes were also backported to release branches as far back as 4.7.
- If you cannot update immediately, ask your hosting provider or developer to apply the vendor mitigation and review the site for unexpected changes.
What it is
From the CVE record
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.
In plain language
Written by AI from the recordWordPress has a serious flaw attackers are actively using; sites on releases from 4.7 onward need their available security update installed today.
Unauthenticated path manipulation in WordPress `get_page_template()` can include a readable local PHP file outside active theme directories and, when server and theme preconditions align, may lead to remote code execution.
If you're affected
- Website takeover
- Customer data exposure
- Malicious code execution
- Business disruption
- Ransomware risk
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Listed as exploited in the wild since 2026-09-25.
US federal agencies must remediate by 2026-09-28.
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.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
2.9% chance of exploitation activity in the next 30 days, which ranks it in the 86th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
12 events over 4 days, from the signal feeds we watch.
- Workaround availablerecord updated
- Added to CISA KEVworkaround available, workaround available, record updated, record updated
- Nuclei check added
- Workaround availablepublished, weakness classified, record updated
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored 8.1 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
Sources
References in the record
In the news
- Week in review: Gyazo breach exposes 23.6M user data, TASK#STOMP steals documents
- Угроза выполнения произвольного кода на WordPress
- Critical WordPress Vulnerability Exploited Immediately After Disclosure
- Attackers Exploit WordPress CVE-2026-87902 Within Hours of Disclosure
- Hackers start exploiting critical WordPress flaw for code execution
- WordPress 7.1.2 fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902)
- CVE-2026-87902: Attackers Started Probing WordPress Sites Hours After the Patch
- WordPress Issues Patch for Critical Flaw That Can Enable Code Execution on Some Servers
- WordPress 7.1.2 Security Release: Unauthenticated LFI to RCE
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next exploited one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for WordPress, not every advisory. This one: actively exploited.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI