Critical WP2Shell Vulnerabilities Expose Millions of WordPress Sites to Unauthenticated Remote Code Execution
WordPress, the worlds most popular content management system powering over 40 percent of all websites, faces a severe security threat. Security researchers have uncovered a pair of critical vulnerabilities in WordPress Core, collectively known as WP2Shell. These flaws enable attackers to achieve unauthenticated remote code execution on vulnerable sites, potentially leading to full server compromise.
The vulnerabilities, tracked as CVE-2026-63030 and CVE-2026-60137, were disclosed in mid-July 2026. Exploitation in the wild began almost immediately after public details emerged, with attackers deploying webshells and malicious plugins on compromised websites.
Understanding the WP2Shell Vulnerabilities
WP2Shell is not a single bug but a powerful exploit chain that combines two distinct issues within the WordPress core software. This combination allows unauthenticated attackers to bypass security controls and execute arbitrary code on default installations without any plugins or special configurations required.
CVE-2026-63030 (REST API Batch Route Confusion): This flaw affects the batch processing endpoint at /wp-json/batch/v1. Introduced in WordPress 6.9, it creates a route confusion scenario where attackers can manipulate how the system handles sub-requests. This effectively bypasses authentication and permission checks that should prevent unauthorized access.
CVE-2026-60137 (SQL Injection in WP_Query): This vulnerability involves improper sanitization of the author__not_in parameter in the WP_Query class, a core component responsible for building most database queries in WordPress. The flaw allows SQL injection, enabling attackers to manipulate database operations.
When chained together on affected versions, these vulnerabilities transform what might otherwise be limited issues into a devastating remote code execution attack path.
Affected Versions and Scope
The full unauthenticated remote code execution chain impacts the following WordPress versions:
- 6.9.0 through 6.9.4
- 7.0.0 through 7.0.1
CVE-2026-60137 alone affects versions dating back to 6.8.0, but the complete exploit chain requires the REST API flaw introduced in 6.9. WordPress has released security updates in versions 6.9.5, 7.0.2, and 6.8.6 to address these issues. Sites running older versions remain highly vulnerable.
Given WordPresss massive global footprint, security experts estimate that millions of websites could be at risk, particularly those that have not yet applied the latest patches.
How the Attack Works
The attack begins with a carefully crafted request to the WordPress REST API batch endpoint. By exploiting the route confusion in CVE-2026-63030, attackers bypass normal authentication requirements. This allows them to reach the SQL injection vulnerability in CVE-2026-60137.
Through the SQL injection, attackers can create administrator accounts, extract sensitive data such as password hashes, or manipulate the database in other ways. Once they have elevated privileges, they can upload and activate malicious plugins or install persistent webshells that grant ongoing server access.
Public proof-of-concept exploits have circulated rapidly, lowering the barrier for threat actors ranging from script kiddies to sophisticated ransomware groups. Reports indicate mass scanning and successful compromises occurring within hours of the vulnerabilities becoming public.
Real-World Impact and Exploitation
Security firms and government agencies, including Germanys BSI, have issued urgent warnings about active exploitation. Attackers use the vulnerabilities to deploy webshells for persistent access, steal data, deface websites, or use compromised servers as part of larger botnets.
Because the attack requires no authentication and works on default installations, even well-maintained sites that lag slightly in updates face immediate danger. E-commerce sites, blogs, corporate websites, and government portals running vulnerable WordPress versions are all potential targets.
The speed of exploitation highlights the challenges of securing widely deployed open-source software. With WordPress sites often managed by users with varying technical expertise, many remain unpatched despite the availability of fixes.
Immediate Mitigation Steps
Organizations and site owners should take the following actions without delay:
- Update immediately to WordPress 7.0.2, 6.9.5, or 6.8.6, depending on the current version branch.
- Enable automatic updates if not already active.
- Review server logs for suspicious requests to the /wp-json/batch/v1 endpoint.
- Scan websites for unauthorized administrator accounts or unfamiliar plugins.
- Consider implementing a web application firewall (WAF) that can block malicious patterns associated with these exploits.
- Restrict direct access to the REST API if it is not needed for public functionality.
For sites unable to update immediately, temporary mitigations such as disabling the batch endpoint or using security plugins with virtual patching capabilities may provide short-term protection.
Broader Lessons for the WordPress Ecosystem
The WP2Shell incident underscores the critical importance of timely patching in content management systems. It also highlights risks associated with complex features like the REST API, which expand functionality but can introduce subtle security flaws when not thoroughly vetted.
Developers and site administrators should adopt security best practices, including regular audits, principle of least privilege, and monitoring for anomalous activity. The involvement of AI tools in discovering these vulnerabilities also signals a new era where both defenders and attackers can leverage advanced technology.
As exploitation continues, the cybersecurity community urges all WordPress users to act swiftly. Delaying updates could result in irreversible damage to websites, loss of user data, and potential legal or reputational consequences.
Staying informed through official WordPress security channels and reputable cybersecurity sources remains essential in todays rapidly evolving threat landscape.