WP2Shell in WordPress: what to fix and how to protect your site

By William Pereira ·

A strong password does not fix a flaw that lets an attacker strike before login. That is what makes WP2Shell relevant to anyone running a WordPress site: two core vulnerabilities can be chained to reach code execution on the server, with no prior account.

For a company, the problem shows up as risk to site continuity, to data and to customer trust. The response has to combine updating and integrity checks. Changing the administrator password alone leaves the cause open.

Reporting as of October 21, 2026. The disclosure and the fixes date from July. The analysis Seqrite published in October revisits the subject; it does not mark the discovery of a new flaw.

What is confirmed about WP2Shell

WP2Shell is the name given to the combination of a route confusion in the REST API batch processing with a SQL injection. The first diverts the expected handling of requests; the second lets an input interfere with database queries. The result of the combination is more severe than either problem taken in isolation.

The official advisory for CVE-2026-63030 confirms the remote execution chain and credits the discovery to Adam Kues of Assetnote / Searchlight Cyber. The advisory for CVE-2026-60137 covers the SQL injection in the author__not_in argument of WP_Query. Both were published on July 17, 2026.

The researchers' disclosure describes exploitation by an anonymous user on a default install, with no plugins. So removing a vulnerable plugin or requiring two-factor authentication in the admin panel does not fix this chain in the core. Nor does it mean every exposed install has been breached: technical possibility and proven compromise are different things.

Which versions were affected and fixed

The WordPress advisories let us separate the scenarios:

  • 6.9.0 to 6.9.4: affected by the full chain; fixed in 6.9.5.
  • 7.0.0 to 7.0.1: affected by the full chain; fixed in 7.0.2.
  • 6.8.0 to 6.8.5: affected by the related SQL injection, without the same full WP2Shell chain; fixed in 6.8.6.

Version 6.8 calls for attention precisely because of that difference: being outside the full chain does not mean being free of the SQL flaw. The researchers' write-up uses that narrower scope; to assess the SQLi, also check the specific WordPress advisory.

The official 7.0.2 release announcement, from July 17, also records the fix in 7.1 beta2 and states that versions prior to 6.8 are not affected by these issues. That does not make old versions a recommended option: they may carry other risks. The fixed versions listed here are historical milestones of this vulnerability, not an indication that they are the latest ones in October. Update to a current, supported stable version, following the official guidance.

What the impact is and what has already been observed

In its October 16 analysis, Seqrite documents a demonstration that creates administrative access and installs a malicious plugin able to run commands. That is demonstrated behavior, not proof that every affected site went through the same sequence.

Wiz Research reported on July 20 exploitation observed in cloud-hosted WordPress installs, including the installation of persistent backdoors. There is, therefore, public evidence of real exploitation. The sources consulted do not allow quantifying an ongoing global campaign as of October 21. It is not correct to turn that limitation into a claim that no attacks happened.

From an operational standpoint, an unknown administrative account or an unexpected plugin deserves investigation. Code execution can expand the incident beyond the admin panel, depending on the process permissions and the hosting isolation. The scope has to be established in the environment; it cannot be inferred from the vulnerability's name alone.

What to do if you administer a site

  1. Take inventory. Check the version actually installed, who is responsible for the hosting and other installs belonging to the same business, including forgotten environments. Ask the provider for evidence of the version applied.
  2. Update and validate. Keep a backup and schedule the update as a priority. Then check the running version and test pages, forms, store and integrations. A notification that an update is available does not prove it has finished.
  3. Apply temporary containment when needed. The researchers recommend blocking anonymous access to the batch API if updating immediately is not possible. The protection must cover both /wp-json/batch/v1 and the ?rest_route=/batch/v1 form. Coordinate the rule with your hosting provider or the WAF owner and test legitimate functions; restricting the REST API can break integrations. This measure does not replace the fix and does not automatically cover every path of the standalone SQLi.
  4. Check the history. Review administrators, plugin and file changes, access logs and hosting events for the period in which the site was vulnerable.

Updating does not close out a prior incident

The patch closes the vulnerability, but it does not necessarily remove what someone already installed. If unexplained changes appear, preserve logs and file copies before cleaning the environment. Bring in the hosting provider and a response team to contain access, check for persistence and recover a trustworthy baseline.

Seqrite describes file names associated with its tests and the analyzed activity. They help guide a search, but they do not form a complete list: an attacker can change names. Likewise, finding a new PHP file or web server activity does not, on its own, prove WP2Shell. Correlate timing, authorship and authorized changes before concluding.

After containment, review credentials, sessions and secrets that may have been exposed, with scope defined by the investigation. Restore from a trusted source and validate integrity before resuming operations. The absence of a known indicator does not show that the environment is clean.

The management decision behind the patch

Useful work starts with three verifiable deliverables: knowing which installs exist, proving they received the fix, and investigating the earlier period when there are signs of compromise. Define who owns each one and where the evidence is recorded. Without that, maintenance becomes a shared expectation with no clear owner.

For those who hire development or hosting, it is worth including these responsibilities in the operating routine. A site's security also depends on inventory, updates and the ability to recover after delivery.

Sources and editorial criteria

The links throughout the text lead to the official advisories, the discoverers' disclosure and the technical reports used in the reporting. The story started from the elhacker.NET news item, read in full; the technical claims were checked against primary sources. We did not run exploitation against any site, nor did we carry out our own measurement of attack prevalence. This article presents an original synthesis for administrators, without reproducing offensive procedures.

Back to blog