A critical vulnerability has been discovered and is being actively exploited in WordPress Core, the world's most popular content management system. The flaw, identified as CVE-2026-87902, is an unauthenticated path traversal that can lead to local file inclusion (LFI). It affects a vast range of WordPress versions from 4.7.0 to 7.1.1. With a CVSS v4.0 score of 9.2, the vulnerability allows an attacker without any credentials to include and execute arbitrary PHP files on the server, potentially leading to full remote code execution (RCE). Security firms reported that exploitation attempts started almost immediately after public disclosure on September 22, 2026. WordPress has released version 7.1.2 to address the issue, and immediate patching is strongly recommended.
CVE-2026-87902 is a path traversal vulnerability found in the page-template resolution mechanism of WordPress. The core of the issue lies in how WordPress handles the pagename parameter in a request. An unauthenticated attacker can craft a malicious request using double-encoded traversal sequences (e.g., ..%252f) to bypass sanitization checks.
This manipulation tricks the get_page_template() function into resolving a path outside of the intended theme directory. As a result, the attacker can force WordPress to include a readable local PHP file from the server's filesystem. While the immediate impact is Local File Inclusion (T1212 - Exploitation for Client Execution), the severity is amplified because it can be chained to achieve Remote Code Execution (T1203 - Exploitation for Client Execution). RCE is possible if the attacker can find and include a PHP file on the server that contains code useful for further exploitation (a 'gadget'). The public availability of a proof-of-concept (PoC) exploit has lowered the bar for attackers.
Any website running an unpatched version of WordPress within this range is vulnerable. Given WordPress's market share, this affects millions of websites globally across all industries.
The vulnerability is under active, widespread exploitation. Security company Patchstack confirmed that attacks began within hours of the flaw's public disclosure. The availability of a working PoC means that even low-skilled attackers can attempt to compromise vulnerable sites. The attacks aim to achieve RCE to take full control of the web server, inject malware, steal data, or use the server in a botnet.
A successful exploit of CVE-2026-87902 can lead to a full compromise of the web server. An attacker could deface the website, steal sensitive database information (including user data), inject malicious scripts (like credit card skimmers), or use the server to host phishing pages or launch further attacks. For businesses, this translates to significant data breach risks, reputational damage, cleanup costs, and potential regulatory fines. The lack of an authentication requirement makes this flaw exceptionally dangerous and easy to exploit at scale.
The following patterns may help identify vulnerable or compromised systems:
url_patternpagename=..%252fpagename parameter of GET requests in web server access logs.file_path/wp-content/uploads/process_namephp or php-fpmapache2, httpd, nginx) that are executing suspicious commands.log_sourceWeb Server Access Logswp-cron.php or xmlrpc.php containing unusual parameters, as these are common targets for exploit attempts...%252f in the pagename query parameter. Use a SIEM or log analysis tool to search for this string across all web servers.D3-SFA: System File Analysis.Dashboard -> Updates.The primary mitigation is to update WordPress Core to a patched version immediately.
Mapped D3FEND Techniques:
Use a Web Application Firewall (WAF) to filter malicious requests containing path traversal patterns.
Mapped D3FEND Techniques:
Ensure the web server process runs with minimal privileges and cannot write to directories outside of its intended scope.
Mapped D3FEND Techniques:
The most urgent and effective countermeasure for CVE-2026-87902 is to apply the security patches released by WordPress. Administrators must immediately update their sites to WordPress version 7.1.2 or the corresponding patched versions for older supported branches. Given that this is an unauthenticated vulnerability under active, widespread exploitation, patching should be treated as an emergency. Utilize the one-click update feature in the WordPress admin dashboard. For environments with multiple sites, use management tools like WP-CLI (wp core update) to automate the process. After updating, verify the new version is correctly installed. Do not delay this action, as automated scanners are actively seeking and compromising vulnerable sites.
As a critical defense-in-depth measure, especially if patching is delayed, deploy a Web Application Firewall (WAF) with rules specifically designed to block CVE-2026-87902. Most major WAF providers (Cloudflare, Akamai, Sucuri) have already pushed virtual patching rules that inspect inbound HTTP requests for the malicious double-encoded path traversal sequence (..%252f) in the pagename parameter. This filtering will block exploit attempts before they reach the vulnerable WordPress application. Ensure your WAF is in blocking mode, not just logging/alerting. This provides a crucial shield while the underlying software is being patched and can protect against variants of the exploit.
CVE-2026-87902 is publicly disclosed, and exploitation attempts begin within hours.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.