CVE-2026-87902
WordPress Core Remote File Inclusion Vulnerability
Summary
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.
Affected software
Vendor: WordPress · Product: Core
Weakness types (CWE):
Am I affected? How do I fix it?
This vulnerability is in CISA's Known Exploited Vulnerabilities catalog: it is being exploited in the wild. The checks below run on your own server, or in a browser: nothing to install, nothing sent to us.
If you run WordPress Core
Am I affected?
1. Which version of WordPress Core do you run? Compare it with the versions the vendor's advisory lists as affected.
How to fix it
1. Apply the vendor's update for the build you run, from the advisory below.
2. Advisories:
Affected releases (NVD)
| Product | Affected | First fixed release |
|---|---|---|
| WordPress | < 4.7.37 | 4.7.37 |
| WordPress | >= 4.8 and < 4.8.32 | 4.8.32 |
| WordPress | >= 4.9 and < 4.9.33 | 4.9.33 |
| WordPress | >= 5.0 and < 5.0.29 | 5.0.29 |
| WordPress | >= 5.1 and < 5.1.26 | 5.1.26 |
| WordPress | >= 5.2 and < 5.2.28 | 5.2.28 |
| WordPress | >= 5.3 and < 5.3.25 | 5.3.25 |
| WordPress | >= 5.4 and < 5.4.23 | 5.4.23 |
| WordPress | >= 5.5 and < 5.5.22 | 5.5.22 |
| WordPress | >= 5.6 and < 5.6.21 | 5.6.21 |
| WordPress | >= 5.7 and < 5.7.19 | 5.7.19 |
| WordPress | >= 5.8 and < 5.8.17 | 5.8.17 |
13 more in NVD's record.
Built from CISA's catalogue, NVD's affected ranges and the vendor's advisory. To see whether a known-exploited vulnerability is matched to your own server, run the free report; the complete audit tailors this guide to that server.
Related vulnerabilities in WordPress
| CVE | Name | EPSS | Exploited |
|---|---|---|---|
| CVE-2020-11738 | WordPress Snap Creek Duplicator Plugin File Download Vulnerability | 97.8% | Yes |
| CVE-2020-25213 | WordPress File Manager Plugin Remote Code Execution Vulnerability | 97.3% | Yes |
| CVE-2019-9978 | WordPress Social Warfare Plugin Cross-Site Scripting (XSS) Vulnerability | 72.9% | Yes |
| CVE-2026-63030 | WordPress Core Interpretation Conflict Vulnerability | 10.6% | Yes |
| CVE-2026-119977 | WordPress WordPress Core Time-of-check Time-of-use (TOCTOU) Race Condition Vulne | 8.1% | Yes |
| CVE-2026-60137 | WordPress Core SQL Injection Vulnerability | 5.3% | Yes |
Is your domain exposed?
Run a free, instant security report for any domain — exposure score, email auth, TLS and breach metadata.
Get your free reportSources: CISA KEV catalog · NVD · FIRST EPSS
This product uses the NVD API but is not endorsed or certified by the NVD.
All information is aggregated from public sources for awareness only and does not constitute an accusation or a security assessment. No personal data or credentials are published.