WordPress Core Remote File Inclusion Vulnerability
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.
Why it matters
- This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, which means it has been observed being exploited in the wild.
Affected
- Vendor: WordPress
- Product: Core
- Identifier: CVE-2026-87902
- FlawFind severity: high
- Weakness: CWE-98
What to do
- 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.
- U.S. federal remediation deadline: 2026-09-28
- Inventory the affected product, prioritise internet-facing instances, and patch or mitigate immediately.
- Audit your own systems for the same weakness class — FlawFind can test your applications and APIs for it and prove what is exploitable.
Notes
https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp ; ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-87902
References
Test your own systems.
FlawFind validates every finding with a working proof-of-concept. Start an audit →