CVE-2026-87902 — wordpress
CVE-2026-87902 is a CWE-98 vulnerability in wordpress. It is in CISA's Known Exploited Vulnerabilities catalog (added 2026-09-25) — treat it as actively exploited and patch now. A fix is available for wordpress — see the affected versions and patch details below.
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2026-09-25. Federal agencies were required to remediate by 2026-09-28.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2026-87902.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
wordpressReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Bitnami packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦Bitnami | wordpress | all versions | 7.1.2 |
Affected Products
wordpresswordpressResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
WordPress 7.0.2 - Path Travesal
by Robert Ressl · Oct 1, 2026
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for wordpress, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update wordpress to 7.1.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-87902 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How to detect CVE-2026-87902
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2026-87902 -u https://target- Template
- WordPress Core - PHP Template Path Traversal
- Severity
- critical
- Impact
- An unauthenticated attacker can include local PHP files outside the active theme. Depending on the files present and the PHP configuration, this can disclose sensitive data or lead to arbitrary code execution.
- Remediation
- Update WordPress to a patched maintenance release for the installed branch.
Template by ProjectDiscovery nuclei-templates (Hadrian, FLX), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2026-87902 in your dependencies?
Find it across Bitnami, including transitive dependencies.