Skip to content
Merlin Tools

Guide · 21 July 2026

wp2shell: what it is and how to protect your WordPress

wp2shell is a critical WordPress flaw that lets an attacker take control of a site without knowing its password. It is already being exploited by automated attacks. Here's what it affects and what to do, right now.

In short

On 17 July 2026 WordPress shipped an emergency release for a pair of flaws nicknamed wp2shell (CVE-2026-63030 and CVE-2026-60137). They are serious for two reasons. First, they are exploitable pre-authentication: no login, no stolen password, no unlucky plugin required, just a site reachable from the internet running an out-of-date version. Second, the exploit code is already public and automated attacks began within days. If your WordPress is among the affected versions, the only thing that matters is updating today.

Which versions are affected

The full attack chain, the one that leads to code execution on the server, affects WordPress 6.9.0 to 6.9.4 and 7.0.0 to 7.0.1. Versions 6.8.0 to 6.8.5 share only half the problem: the flaw that lets data be pulled from the database, without the feature the full attack goes through. The fixes shipped the same day: 6.8.6, 6.9.5 and 7.0.2. Anyone on one of these, or on a later already-released version, is safe from this flaw.

Watch for one tricky case: WordPress 7.1 hasn't shipped its final release yet (due August 2026), and its first beta predates the fix by two days. If your site declares «7.1» without the exact build, check it by hand. Don't assume «newer» means «fixed».

How to know if you're vulnerable

The most direct check is done by whoever manages the site: in the WordPress dashboard, under Dashboard → At a Glance, you can read the installed version. If it's below 6.9.5 (or 7.0.2), update immediately. If you don't have dashboard access or want a quick check from outside, our free wp2shell checker reads the version the site publicly declares and compares it with the fixed ones. It sends no attack attempt: that would risk damaging the site and, on a site that isn't yours, would be an offence.

What to do, in order

  1. Update WordPress to 6.9.5, 7.0.2 or 6.8.6, from the dashboard under Updates. It takes minutes.
  2. If an agency manages the site, forward them this check today: it's not maintenance that can wait for the next round.
  3. If you were exposed for days, review administrator accounts, change admin passwords, and have recently modified files and the logs checked for unusual requests to /wp-json/batch/v1.
  4. If you can't update right away, blocking anonymous access to the batch REST endpoints at your WAF or web server is a stopgap, a temporary measure, not a substitute for updating.

Want to start with the check? Run the wp2shell check on your site: thirty seconds, free, no data collected.

Frequently asked questions

What is wp2shell in plain English?

It's a flaw in the heart of WordPress, disclosed in July 2026, that lets a stranger run commands on your site with no password and no account. Whoever exploits it owns the site. Technically it's two chained defects, CVE-2026-63030 and CVE-2026-60137. No particular plugin is needed: an out-of-date WordPress is enough.

Which WordPress versions are vulnerable to wp2shell?

The full chain affects WordPress 6.9.0 to 6.9.4 and 7.0.0 to 7.0.1. Versions 6.8.0 to 6.8.5 are exposed only to the database flaw. The fixes shipped on 17 July 2026: 6.8.6, 6.9.5 and 7.0.2.

How do I know if my site is vulnerable?

The quickest way is to check the installed WordPress version (in the dashboard, under At a Glance) and compare it with the fixed ones. Alternatively, use our free checker, which reads the version the site declares without sending any attack.

I updated after days of exposure. Is that enough?

Updating closes the door but doesn't evict anyone already inside. If the site sat exposed in the days after 17 July 2026, also review the administrator accounts (any you don't recognise?), change admin passwords, and have recently modified files checked.

I don't use WordPress. Am I at risk?

No. wp2shell is a defect in WordPress's own code. If your site runs on another system or is hand-built, this particular flaw doesn't affect you.