Don’t let the “medium” score fool you — this is half of a pair that adds up to remote code execution on WordPress.
At a glance
- CVE: CVE-2026-60137 (GHSA-fpp7-x2x2-2mjf). Its partner is CVE-2026-63030.
- Severity: 5.9 (Medium) on its own. Chained with CVE-2026-63030 (9.8, Critical), it leads to remote code execution.
- Affected: WordPress 6.8.0–6.8.5, 6.9.0–6.9.4 and 7.0.0–7.0.1. Versions before 6.8 aren’t affected.
- Known exploited: Yes — CISA added it to its KEV list on 2026-07-21.
What’s going on
WP_Query is the class behind almost every list of posts WordPress shows. One of its options, author__not_in (“leave out posts by these authors”), didn’t properly clean what it was given. So if a plugin or theme passes untrusted input straight into that parameter, an attacker can slip their own SQL into the query. That’s why WordPress calls it a “facilitated” SQL injection: it needs something else to feed the bad input in.
That’s where CVE-2026-63030 comes in. On WordPress 6.9 and later, a REST API batch-route confusion bug gives attackers a way to reach the injection anyway, and the two together lead to remote code execution. CISA puts it bluntly: chained, they let an unauthenticated attacker run code on default WordPress installs. On 6.8, only this SQL injection applies. It was reported by TF1T, dtro and haongo.
Timeline
- Disclosed: 2026-07-17 (WordPress 7.0.2 release)
- Patch released: 2026-07-17
- Added to CISA KEV: 2026-07-21
== UPDATE ==
WordPress pushed this one out hard: because of the severity, WordPress.org enabled forced updates through the auto-update system for affected sites.
- Patch available: Yep.
- Fixed in: WordPress 7.0.2, 6.9.5 and 6.8.6 (and 7.1 beta2 for testers). Every later release includes it, so if you’re on the current 7.1.x you’re fine.
- How to apply: Most sites will already have it via auto-updates, but check your version in Dashboard → Updates and click Update Now if you’re behind. If you manage core yourself (Composer, Git, a locked-down host), update to the fixed release on your branch, or newer.
- If you can’t patch yet: WordPress doesn’t offer a workaround. Since the chain goes through the batch endpoint on 6.9 and later, and through plugins or themes that pass user input to
author__not_inon 6.8, the real answer is to update. If something is blocking auto-updates on your site, find out why — that’s the channel WordPress used to push this fix.