CVE-2026-60137: the WP_Query SQL injection behind a WordPress RCE chain
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. ...