CVE-2026-87902WordPress core PHP file inclusion via page templates
CVSS score
8.1
High
CVSS 3.1 from 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit probability (EPSS)
95.8%
95.8% chance of exploitation in the next 30 days, higher than 99.9% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 25 Sept 2026.
US federal deadline to fix: 28 Sept 2026.
In plain words
An unauthenticated attacker over the network can make WordPress load a chosen local PHP file as a page template, which can lead to remote code execution if server and active theme conditions line up. Versions below 4.7.37, 4.8 before 4.8.32 and 4.9 before 4.9.33 are affected, and CISA reports active exploitation. Update WordPress to a fixed release from the vendor now, and follow the mitigations and forensic triage steps in CISA's guidance.
Official 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.
Source: NVD · CNA: support@hackerone.com
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 25 Sept 2026.
US federal agencies must fix it by 28 Sept 2026. It's a sensible deadline for everyone else too.
CISA's full instruction
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.
Check whether you're affected
Find every system running Wordpress and compare its version with the affected versions.
Update to a fixed version
- Update Wordpress to 4.7.37, 4.8.32, 4.9.33, 5.0.29 or later, on the branch you run.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| WordPress Wordpress | < 4.7.37 · ≥ 4.8, < 4.8.32 · ≥ 4.9, < 4.9.33 · ≥ 5.0, < 5.0.29 · ≥ 5.1, < 5.1.26 · ≥ 5.2, < 5.2.28 |
Weakness
- CWE-98 PHP file inclusion
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2026-87902 being exploited?
Yes. CISA added CVE-2026-87902 to its Known Exploited Vulnerabilities catalog on 25 Sept 2026, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 95.8% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-87902?
CVE-2026-87902 has a CVSS 3.1 base score of 8.1 (high).
Which versions are affected?
WordPress Wordpress (< 4.7.37; ≥ 4.8, < 4.8.32; ≥ 4.9, < 4.9.33; ≥ 5.0, < 5.0.29; ≥ 5.1, < 5.1.26; ≥ 5.2, < 5.2.28)
Is there a patch for CVE-2026-87902?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp(Vendor Advisory)
- patchstack.com/articles/cve-2026-87902-attackers-started-probing-wordpress-sites-hours-after-the-patch/(Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-87902(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.