WordPress hosts millions of websites globally, making it the world’s most popular CMS. The REST API built into WordPress allows websites, plugins, themes, and external services to integrate with modern web applications. However, vulnerabilities in the REST API can pose serious security risks to WordPress sites.
CVE-2026-63030 is a high-severity vulnerability involving Route Confusion in the WordPress REST API Batch Endpoint. Under certain conditions, attackers can exploit the request routing process to trigger an SQL Injection and potentially achieve Remote Code Execution (RCE) when chained with a second vulnerability.
What is CVE-2026-63030
CVE-2026-63030 is a Route Confusion vulnerability in the WordPress REST API Batch Endpoint. The flaw causes certain API requests to be processed through incorrect endpoints, bypassing intended security checks. On its own, the vulnerability does not enable remote code execution, but when chained with CVE-2026-60137 it can be used to carry out an SQL Injection attack. Because exploitation can be performed remotely without authentication, WordPress site owners should update their installations immediately.
What is the WordPress REST API
The WordPress REST API is a built-in interface that allows developers to interact with WordPress using HTTP requests. It enables applications, plugins, themes, and external services to create, read, update, and delete WordPress content without directly accessing the database. The REST API is widely used for headless WordPress websites, mobile applications, and third-party integrations. Since it provides access to important website functionality, securing the REST API is essential to prevent unauthorized access and API-based attacks.
Understanding Route Confusion (CWE-436)
Route Confusion (CWE-436) is a vulnerability where an application processes incoming requests in a way not intended by its developers. As a result, a request may bypass intended security checks or reach an unexpected endpoint. Attackers exploit this by sending carefully crafted requests. In the case of CVE-2026-63030, route confusion in the WordPress REST API Batch Endpoint enables complex attack chains when combined with other vulnerabilities.
How Does CVE-2026-63030 Work
Exploitation occurs when a specially crafted request is sent to the WordPress REST API Batch Endpoint. Due to improper route validation, the request is processed by the wrong endpoint rather than the intended one. When this route confusion is combined with CVE-2026-60137, attackers can inject SQL code and potentially achieve remote code execution.
Root Cause of CVE-2026-63030
The root cause of CVE-2026-63030 is an Interpretation Conflict (CWE-436) in the WordPress REST API’s request routing logic. The application does not apply consistent validation when processing batch API requests, which allows certain specially crafted requests to reach unintended API routes and bypass security controls.
Attack Vector and Exploitation Scenario
An attacker first identifies a WordPress site running a vulnerable version of the REST API Batch Endpoint. The attacker then sends a crafted request to the REST API that exploits the route confusion vulnerability. If the target site also has the CVE-2026-60137 vulnerability, the attacker can chain both flaws to perform an SQL injection, potentially gaining unauthorised access to data or achieving remote code execution.
Affected WordPress Versions
CVE-2026-63030 affects the WordPress 6.9.x series before version 6.9.5 and the WordPress 7.0.x series before version 7.0.2. Websites running these versions are vulnerable to route confusion attacks on the REST API Batch Endpoint. The vulnerability is fixed in WordPress 6.9.5, 7.0.2, and all later releases. Site administrators should update to the latest stable version as soon as possible.
CVSS Score and Severity of CVE-2026-63030
CVE-2026-63030 has a CVSS v3.1 base score of 7.5, classified as High severity. A public proof-of-concept exploit for this vulnerability, known as wp2shell, has been circulating online. The attack vector is network-based and requires no authentication or user interaction, making the vulnerability accessible to remote attackers. When chained with CVE-2026-60137, the real-world risk is significantly higher than the base score alone suggests.
Impact of CVE-2026-63030
CVE-2026-63030 introduces a route confusion flaw in the REST API batch request endpoint (/wp-json/batch/v1). When an attacker sends a specially crafted sub-request, REST API validation is desynchronised, bypassing normal batch limitations and input sanitisation. On its own this does not cause RCE, but it creates the conditions for further exploitation.
The primary risk is that this vulnerability can be directly chained with CVE-2026-60137, an unauthenticated SQL Injection flaw exploitable through the author__not_in parameter. Combining these two vulnerabilities allows an attacker to extract or manipulate database content and, in certain server configurations, achieve remote code execution.
Mitigation and Patch Management
The WordPress Security Team responded by releasing security updates to core and pushing automatic background updates to all installations that have auto-updates enabled.
Applying the official security patch is the only complete fix. Workaround configurations alone are not sufficient as a permanent solution. Confirm that your environment meets or exceeds the following minimum patched versions:
- WordPress 6.9.x branches must be immediately updated to Version 6.9.5.
- WordPress 7.0.x branches must be immediately updated to Version 7.0.2.
- WordPress 7.1 Beta environments must advance to 7.1 Beta 2 or later.
For temporary defense while updates are scheduled, administrators can implement custom Web Application Firewall (WAF) rules to inspect, throttle, or temporarily block anomalous incoming payloads directed at the /wp-json/batch/v1 path.
Best Practices to Secure the WordPress REST API
Securing REST API endpoints requires a layered approach. Patching is the primary fix, but the following additional measures reduce the attack surface and improve detection.
Restrict REST API access to authenticated users where your site does not require public access to those endpoints. This can be implemented using custom hooks in your theme’s functions.php file or a security plugin configured to return a WP_Error for unauthenticated requests.
Apply rate limiting to API endpoints to reduce the risk of automated scanning and brute-force exploitation attempts.
Monitor file integrity and server logs for unusual activity. Unexpected errors or repeated batch requests to admin endpoints can indicate an active exploitation attempt. Early detection significantly reduces the potential impact of an attack.
FAQ
Conclusion
CVE-2026-63030 illustrates how a route confusion flaw that appears minor in isolation can become a critical risk when chained with a second vulnerability. Because public proof-of-concept exploits circulate quickly after disclosure, the window between patch release and active exploitation is short. Applying the security updates to WordPress 6.9.5 or 7.0.2 and confirming that auto-updates are enabled are the most effective steps to protect your site.

