All articles
Security updatesAwarely Monitor editorial team5 min

wp2shell: pre-auth RCE in WordPress core itself — update now

On 17 July 2026, WordPress shipped security releases 6.9.5 and 7.0.2. The headline reason: a critical unauthenticated remote-code-execution vulnerability in the platform's core, dubbed "wp2shell" by the Searchlight Cyber researchers who found it.

What lifts this out of the "yet another WordPress CVE" bucket: it needs no plugin, no special configuration and no account. A clean, default WordPress install is exploitable with one anonymous HTTP request. And proof-of-concept exploit code has already been published.

How the chain works

wp2shell isn't one vulnerability but a chain of two that would each have been far less serious alone:

  • ▸CVE-2026-60137 — SQL injection in the author__not_in parameter of WP_Query, WordPress's central query component.
  • ▸CVE-2026-63030 — a route confusion in the REST batch API (/wp-json/batch/v1) that lets an anonymous request reach routes it should never be able to touch.
  • ▸Together: the anonymous request reaches the vulnerable query through the batch API, and the SQL injection escalates to code execution on the server — hence the name, "from WP to shell".

Are you affected?

Affected versions: 6.9.0–6.9.4 and 7.0.0–7.0.1. Fixed in 6.9.5 and 7.0.2 respectively. WordPress runs an enormous share of the web — if your organisation has a marketing site, a blog or a WooCommerce shop, it very likely runs WordPress, even if your security team never thinks about it.

WordPress.org enabled forced automatic updates for sites on affected versions — an unusual step reserved for severe cases. But don't rely on it: forced updates don't reach sites with auto-updates disabled, some hosting setups, or version-controlled deployments. "It probably updated itself" is not a verification.

What to do, in order

  • ▸Check your version now: Dashboard → Updates, or `wp core version` via WP-CLI. Below 6.9.5 / 7.0.2 → update immediately, not at the next maintenance window.
  • ▸Inventory: how many WordPress sites does your organisation actually have? The marketing site, the blog, old campaign landing pages — the forgotten ones are precisely the ones that stay unpatched.
  • ▸After patching, look for signs of compromise: new or recently modified PHP files under uploads/, unknown administrator users, suspicious cron entries. Public PoC + pre-auth means the exploitation window was open to anyone.
  • ▸Medium term: put CMSes in your monitored asset inventory too, not just servers and code libraries. A critical WordPress core CVE is exactly the kind of alert that should find you — not the other way round.

How to monitor CVEs and get alerts for products in your inventory