wp2shell CVE-2026-63030: WordPress RCE
CVE-2026-63030 chains a REST API batch-processing flaw with an SQL injection to mint an admin account. No credentials required.
Mayank Tripathi · Founder, CyberSpec
3 min read
Updated 27 November 2026: corrected the CVSS scores to the ones in the CVE records, and added the 6.8 branch, which the SQL injection half of the chain also affects.
WordPress runs a large share of the public web, which makes a pre-auth remote code execution bug in core (not a plugin, core) a different class of problem from the weekly plugin advisory. The "wp2shell" chain (CVE-2026-63030 and CVE-2026-60137) is being actively exploited to install persistent webshells and malicious plugins, and it was added to CISA's Known Exploited Vulnerabilities catalog on 21 July 2026. If you run WordPress anywhere on your estate, including that marketing microsite nobody has logged into since 2024, this is a same-day patch.
Description of the vulnerability
wp2shell is a chain of two bugs, and the scores show why chains are hard to triage one CVE at a time. The CVE record for CVE-2026-63030, filed by WPScan as the CNA, scores the batch flaw CVSS 3.1 9.8 (Critical), because its description already includes the chain. The SQL injection it chains with, CVE-2026-60137, scores 5.9 (Medium) on its own record. Read in isolation, the 5.9 looks like a patch-next-month bug. Chained, it is full site takeover. The batch flaw was found by Adam Kues of Assetnote / Searchlight Cyber, according to the CVE record.
Link one: desynchronisation in the batch endpoint. The REST API batch
processor at /wp-json/batch/v1 validates requests in one loop and executes
them in a second loop. Because the two loops walk their arrays independently,
a crafted batch can desynchronise them, so a request gets dispatched under a
handler other than the one it was validated against.
Link two: SQL injection in the posts endpoint. A separate flaw in the
author__not_in parameter (CVE-2026-60137) is not reachable on its own,
because parameter validation stops it. Sent through the desynchronised batch
processor, that validation never runs.
Chained, an unauthenticated attacker reaches WordPress internals directly, creates an administrator account, logs in, and uploads a plugin, which is how anyone gets code execution on WordPress once they are an admin. It needs no credentials, no user interaction and no phishing step.
Affected: WordPress 6.9.0–6.9.4, 7.0.0–7.0.1, and 7.1 beta builds for the
full chain. The SQL injection (CVE-2026-60137) also reaches back to the 6.8
branch: its CVE record lists 6.8.0 to 6.8.5 as affected. The batch flaw is not
listed for 6.8, so on 6.8 the injection is exposed where a plugin or theme
passes untrusted input to author__not_in, per the record. A 6.8 site still
needs the update.
Resolution steps
- Upgrade core now. Patched releases are 6.9.5, 7.0.2, and 7.1 Beta 2, shipped 17 July 2026, and 6.8.6 for the 6.8 branch. Auto-updates cover many sites, but not sites pinned by a deployment pipeline or managed host, so verify the running version rather than assuming. WordPress's own release notes for 6.9.5 list the fixed CVEs directly.
- If you cannot patch this hour, block the endpoint. Deny
/wp-json/batch/v1at the WAF or reverse proxy. This is a stopgap, not a fix: the SQL injection remains reachable if another path to it appears. - Restrict anonymous REST API access. Most business sites have no reason to expose write-capable REST routes to unauthenticated visitors at all.
- Assume compromise if the site was internet-facing and unpatched. Patching removes the bug; it does not remove an attacker who already got in. Hunt before you declare it closed.
- Hunt for the artefacts: anomalous requests to the batch endpoint in
HTTP access logs, administrator accounts you did not create, plugins nobody
recognises, and files modified under
wp-content/outside a deploy window. - Rotate credentials and salts on any site that shows those artefacts, and rebuild from a known-good source if a webshell is found. A webshell is a persistence mechanism; deleting the file it dropped is rarely the whole cleanup.
Conclusion
wp2shell is a reminder that CVSS is a component score, not a priority order. A 5.9 that chains into unauthenticated site takeover outranks a lonely 9.0 on a service nobody can reach. Two things decide your exposure here: whether you know every WordPress instance you own, and how fast you learn that a patch exists. Both are inventory problems long before they are patching problems, and the sites that get hit are almost always the ones no team remembered was still running.
CyberSpec scans the domains and IPs you have verified on the schedule you set. On a full scan it names WordPress and its version where the site exposes it, and flags the version as outdated or end of life when it is behind, so a forgotten CMS on an asset you have added shows up as a finding rather than as an incident. It does not test for or exploit this chain. See how technology detection works.
- WordPress
- CVE-2026-63030
- Remote Code Execution
- REST API
- Web Application Security
Related
- How CyberSpec scanning works : scheduled scans, ownership verification, live progress.
- SOC 2, ISO 27001 and PCI DSS coverage : what maps to which control family, and what doesn't.
- PHP, Next.js, Rails and .NET flaws: autumn 2026 : Two runtime bugs reached CISA's exploited list in October, and Next.js, React, Rails, Laravel and ASP.NET Core all shipped critical fixes. What to patch first.
- Outdated vs end-of-life software: the difference : "Out of date" covers two different problems: a missed patch and a release line nobody fixes any more. They fail differently, and they are fixed differently.
- Know your site's stack, get the fix in a day : Most small sites are breached through software nobody remembered was there. How CyberSpec names your stack and emails what's new, with the fix, each day.