On July 17, 2026, the WordPress security team released three security releases — 6.8.6, 6.9.5 and 7.0.2 — along with two security advisories published on the wordpress-develop repository. One of the two vulnerabilities is rated critical and, in some configurations, allows remote code execution.
This article details the technical nature of these flaws, the affected versions, and the steps to secure your installations.
Why a Core Vulnerability Deserves Your Attention
The vast majority of WordPress vulnerabilities disclosed each year affect third-party plugins and themes. Core code benefits from a rigorous review process, a large contributor base and a dedicated security team. Flaws there are rare.
That is precisely what makes this event notable. A core vulnerability potentially affects every site running the affected versions, with no particular plugin required for exploitation. The attack surface no longer depends on the administrator’s choices: it is universal.
The Two Vulnerabilities
GHSA-fpp7-x2x2-2mjf — Facilitated SQL Injection in WP_Query
Severity: moderate
Affected versions:
| Branch | Vulnerable versions |
|---|---|
| 6.8 | 6.8.0 → 6.8.5 |
| 6.9 | 6.9.0 → 6.9.4 |
| 7.0 | 7.0.0 → 7.0.1 |
The flaw lies in how the author__not_in parameter of the WP_Query class is handled. This is the core component WordPress uses to build content retrieval queries.
WP_Query accepts a large number of parameters for filtering the posts it returns. The author__not_in parameter is used to exclude authors from a result set, and normally expects an array of numeric IDs. A validation defect on this parameter allows unsanitized data to end up in the final SQL query.
The qualifier “facilitated” (facilitated) used in the advisory is important: core does not directly expose the parameter to unauthenticated user input. Exploitation requires an entry point — a plugin, theme, custom code, or API route — to pass an attacker-controlled value to this parameter. Core makes exploitation possible; the application context makes it reachable.
That is why the flaw is rated moderate when considered in isolation. That rating changes radically when it is combined with another flaw.
Disclosed by: TF1T, dtro and haongo.
GHSA-ff9f-jf42-662q — REST API Route Confusion Leading to RCE
Severity: critical
Affected versions:
| Branch | Vulnerable versions |
|---|---|
| 6.9 | 6.9.0 → 6.9.4 |
| 7.0 | 7.0.0 → 7.0.1 |
Since WordPress 6.9, the REST API offers a batch requests mechanism (batch requests), which lets you submit several operations in a single HTTP call through the /wp-json/batch/v1 endpoint. This mechanism exists for performance reasons, particularly on the block editor side.
The vulnerability stems from a confusion in route resolution within this mechanism. Individual requests wrapped in a batch are not resolved and validated as rigorously as an equivalent direct request. An attacker can exploit this discrepancy to reach, through the batch, routes or parameters that would have been filtered on direct access.
On its own, this route confusion is an access control problem. Combined with the SQL injection described above, it provides the missing entry point: the attacker gets a channel to inject controlled data into WP_Query, turning a conditional flaw into a complete exploitation chain leading to remote code execution.
This is the classic pattern of a compound vulnerability: two individually manageable defects whose combination produces an impact of a completely different order.
Disclosed by: Adam Kues (Assetnote / Searchlight Cyber).
Version Summary
Patched versions
- 6.8.6
- 6.9.5
- 7.0.2
- 7.1 beta2
Summary table
| Installed version | SQL injection | RCE via REST API | Action |
|---|---|---|---|
| ≤ 6.7.x | Not affected | Not affected | Branch upgrade recommended |
| 6.8.0 – 6.8.5 | Vulnerable | Not affected | Update to 6.8.6 |
| 6.8.6 | Patched | Not affected | Up to date |
| 6.9.0 – 6.9.4 | Vulnerable | Vulnerable | Update to 6.9.5 — urgent |
| 6.9.5 | Patched | Patched | Up to date |
| 7.0.0 – 7.0.1 | Vulnerable | Vulnerable | Update to 7.0.2 — urgent |
| 7.0.2 | Patched | Patched | Up to date |
The Special Case of Versions 6.7 and Earlier
These versions are not affected by either advisory. That is good news this time, but it hides a structural problem.
A site on 6.7 or earlier is several release cycles behind. It is exposed to the vulnerabilities fixed between its version and the current one — public, documented flaws for which exploits have been circulating for months. Not appearing on this month’s list of affected versions is not a security posture.
What to Do, Concretely
1. Identify your versions
From WP-CLI, on each installation:
wp core version
On a shared or multi-site server, taking inventory by scanning the file system remains the most reliable method:
find /var/www -name version.php -path '*/wp-includes/*' 2>/dev/null | \
while read f; do
v=$(grep -oP "\\\$wp_version = '\K[^']+" "$f")
echo -e "$v\t${f%/wp-includes/version.php}"
done | sort -V
2. Update
Via WP-CLI, staying within the minor branch:
wp core update --minor
Or by explicitly targeting the version:
wp core update --version=7.0.2
From the admin interface: Dashboard → Updates.
3. Verify afterward
A core update guarantees nothing if it failed silently — a common case when file system permissions are restrictive or an update management plugin interferes. Always check the actual version after the operation.
4. Look for possible signs of compromise
On a site that stayed vulnerable on 6.9.x or 7.0.x for an extended period, updating is not enough: it closes the door, but does not expel anyone who may already be inside. Priority checks:
- unknown administrator accounts under Users
- recently modified PHP files in
wp-content/uploads/(a directory that should never contain any) - unexpected scheduled tasks (
wp cron event list) - suspicious entries in access logs for
/wp-json/batch/v1
If your site has been hacked, LRob offers a WordPress repair and security service.
5. Prevent it from happening again
Automatic core updates for minor versions have been enabled by default since WordPress 3.7. If your sites were not up to date, this mechanism was disabled — deliberately or by a plugin. Check the constant in wp-config.php:
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
Security releases fall precisely into this category.
For even faster updates, LRob hosting plans allow automatic updates directly from the server.
What This Episode Really Reveals
The delay between the release of a patch and the appearance of automated exploits is now measured in hours, not weeks. Mass scanners integrate new vectors almost immediately, and an outdated site is not targeted because someone is interested in it: it is targeted because it can be found.
So the relevant question is not “am I up to date today?” but “how much time structurally passes, in my organization, between the release of a patch and its application?” It is a question of process, not individual vigilance.
The LRob Approach
At LRob, these two flaws affected 1.3% of hosted sites at the time the advisories were published — a direct result of an automated update policy applied by default.
Our WordPress hosting includes:
- additional WordPress-specific protections, upstream of the application code, with active banning of attackers at the server level, which drastically reduces the attack surface regardless of the installed version;
- the option to enable automatic updates for core, plugins and themes;
- complete WordPress maintenance plans, including monitoring, tested backups and incident response.
The goal is simple: that the publication of a security advisory is no longer an event requiring urgent action on your part. You entrust us with monitoring and applying patches, and you sleep soundly.
Discover our WordPress maintenance plans →









Leave a Reply
You must be logged in to post a comment.