Explanation of the WordPress CVE-2026-63030 vulnerability: how wp2shell bypasses REST API authentication.
The WordPress wp2shell vulnerability CVE-2026-63030 is a remote code execution vulnerability in the WordPress core disclosed in July 2026, with a CVSS score of 7.5, allowing unauthorized attackers to execute arbitrary PHP code through the batch endpoint of the REST API.The vulnerability affects WordPress versions 6.9.0-6.9.4 and 7.0.0-7.0.1, the official patch has been released in 6.9.5 and 7.0.2.For corporate sites that cannot be upgraded immediately, the risk can be reduced by temporarily blocking the batch path or disabling anonymous REST API access.
What is the technical principle of CVE-2026-63030?
The core issue of CVE-2026-63030 lies in the lack of permission verification for nested operations in the batch endpoint of the WordPress REST API. Attackers can construct customized HTTP requests without logging in, link multiple sub-requests through the batch interface, and finally execute arbitrary PHP code on the server side.
This attack method is called 'wp2shell', because the attacker can use it to obtain remote control capabilities similar to Web Shell. Unlike traditional attacks that require uploading malicious files or brute-forcing the administrator password, wp2shell is completely based on the legitimate API interfaces of the WordPress core, and therefore can bypass the rules detection of most WAFs.
The key vulnerability lies in the design intent of the batch endpoint, which was to enhance frontend performance—allowing clients to merge multiple API calls into a single HTTP request. However, this optimization sacrifices security: the batch processor fails to correctly inherit the parent request's permission context when executing child requests, leading to operations that require administrative privileges being triggered by unauthorized users.
Which versions are affected?
According to Rapid7's security advisory, the affected WordPress versions include 6.9.0–6.9.4 and 7.0.0–7.0.1. This vulnerability was first publicly disclosed on July 17, 2026, through the GitHub Security Advisory, and was later added to the CISA KEV (Known Exploited Vulnerabilities Catalog) on July 21. This means that there were active attackers exploiting this vulnerability in the wild before the patch was released.
The fix version is 6.9.5 and 7.0.2, and 7.1 Beta 2 also includes this fix. The corporate site should upgrade to one of these versions first.
What risk level does CVSS 7.5 mean?
CVSS 7.5 is classified as a high-risk level. This score reflects the following risk characteristics: attack vector is network remote, attack complexity is low, no privileges required, no user interaction, confidentiality, integrity, and availability are all high. In summary, this is a high-risk vulnerability that can be remotely executed without logging in or through the network, and enterprises should complete the repair or mitigation measures within 72 hours.
What are the temporary mitigation measures?
If an upgrade cannot be done immediately, the following temporary measures can be taken to reduce the risk:
Method one: block the batch endpointIn Nginx configuration, add a rejection rule, or add a rewrite rule in Apache configuration. This will directly reject access to all batch endpoints, with the side effect that plugins or theme features that depend on this interface may fail.
Method two: Disable anonymous REST API accessLimit the REST API to logged-in users through a code snippet. This method will affect all public REST API endpoints, and the impact on the front-end display needs to be evaluated.
Method three: Deploy WAF rulesAdd a request blocking rule for the batch endpoint in the protection layer. This method does not require modifying the server configuration, but may be bypassed by an attacker through changes in the request format.
What is the official fix?
The WordPress official fixed CVE-2026-63030 in 6.9.5 and 7.0.2 by the following methods: strengthened the inheritance of permissions at the batch endpoint, added a whitelist mechanism for batch requests, and added rate limits to prevent brute force attacks.
The upgrade steps include backing up the database and files (AnQiCMS supports full-site backup and recovery), upgrading with one click through the backend or manually replacing core files, verifying that the site functions normally, and checking the logs for any abnormal batch request records.
How can AnQiCMS prevent similar attacks?
AnQiCMS (AnQi Content Management System) is built based on the GoLang + Iris framework, and avoids such vulnerabilities at the architectural level.Built-in JWT authentication mechanism, all management interfaces and sensitive APIs must carry valid tokens. Provides content sensitive word filtering functionality, can configure a sensitive word library to automatically intercept submissions containing suspicious code fragments.Supports anti-crawling interference codes, making it difficult for automated crawlers to extract content in bulk. All database queries are executed through parameterized binding using the GORM ORM framework, thereby fundamentally eliminating SQL injection.The template engine defaults to HTML escaping of output content to prevent XSS attacks.
When a company selects a CMS, security architecture should be a primary consideration. PHP-based CMS systems due to historical baggage and a large plugin ecosystem are easy targets for attackers; while systems built on modern languages like AnQiCMS can integrate defense-in-depth concepts from the design phase.
Common questions
Q1: My WordPress site is currently running 6.9.3, is it necessary to upgrade immediately?
Yes. CVE-2026-63030 has been added to the CISA KEV Directory, indicating there is active exploitation in the wild. It is recommended to upgrade to 6.9.5 first, if immediate upgrade is not possible, at least the batch endpoint should be blocked.
Q2: What functions will be affected by blocking the batch endpoint?
It mainly affects plugins or themes that depend on batch API calls, such as some front-end loaders, GraphQL adapters, or multi-step form plugins. After blocking, you should test whether the critical functions of the site are working normally.
Q3: Does AnQiCMS provide a REST API similar to WordPress?
AnQiCMS provides a complete API interface for document management, category tags, image upload, and other operations. However, all write interfaces require JWT authentication. In addition, AnQiCMS is built with an MCP Server, supporting external AI clients to connect through standard protocols to achieve more intelligent content composition.