CVE-2026-60137: SQL Injection in WordPress WP_Query author__not_in
- Vendor
- Wordpress
CVE-2026-60137 is an SQL injection vulnerability in WordPress Core affecting versions 6.8.0–6.8.5, 6.9.0–6.9.4, and 7.0.0–7.0.1. WP_Query applies integer sanitization to array values supplied through author__not_in but permits unexpected scalar strings to enter a post_author NOT IN SQL clause without appropriate escaping or integer coercion. Exploitation is possible when a plugin, theme, or another reachable code path passes attacker-controlled input to this argument. In the wp2shell exploit chain, REST API batch-route confusion vulnerability CVE-2026-63030 bypasses normal parameter validation, allowing a scalar author_exclude value to reach author__not_in on affected default installations. The SQL injection enables sensitive database extraction and, when combined with additional application behavior, can lead to administrator account creation and server-side code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises database confidentiality and can expose account identifiers, password hashes, application data, and database metadata. Injected query results can also manipulate application behavior. On WordPress versions affected by CVE-2026-63030, the wp2shell chain can use forged query results and cache/changeset processing to create an administrator account without cracking an existing password, then upload a malicious plugin. Resulting code execution runs with the PHP worker's operating-system privileges, not automatically as root, and can enable persistent webshell access, website modification, further credential theft, and secondary attacks. WordPress 6.8.0–6.8.5 contains the SQL injection but lacks the batch-route flaw required for this default-installation chain.
Mitigation
If you can’t patch tonight, do this now.
If patching is delayed, block anonymous access to both REST batch endpoint forms, /wp-json/batch/v1 and requests using rest_route=/batch/v1, or temporarily require authentication for REST API access. Apply appropriate managed WAF protections and ensure traffic cannot bypass them. These controls interrupt the documented batch-route chain but do not protect separate plugin or theme paths that pass untrusted input into author__not_in. Disabling plugin installation or filesystem modifications and restricting executable PHP writes can reduce downstream code-execution opportunities. Persistent external object caching may interrupt the documented cache-dependent escalation path but does not prevent the underlying SQL injection or replace patching.
Remediation
Patch, then assume compromise.
Upgrade WordPress to at least 6.8.6, 6.9.5, or 7.0.2 on the corresponding branch, preferably to the latest supported security release, and verify that the update completed successfully. Affected 7.1 beta installations should move to beta2 or later. The SQL injection fix normalizes author__not_in using wp_parse_id_list() at the SQL-construction boundary. For Debian stable (trixie), install wordpress version 6.8.6+dfsg1-0+deb13u1 or later. Patching does not remove an existing compromise: preserve evidence, investigate unauthorized administrators and modified PHP files, remove malicious persistence, reset potentially exposed passwords, and rotate API keys.
Exploits
58 exploits validated by Mallory's analysis. Hidden: 33 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-60137 exploited in the wild?
- Yes. As of Nov 27, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 21, 2026.
- Is there a public exploit for CVE-2026-60137?
- Yes. Mallory tracks 58 public exploits or proofs of concept for CVE-2026-60137, the earliest disclosed Jul 17, 2026.
- Is there a patch for CVE-2026-60137?
- Upgrade WordPress to at least 6.8.6, 6.9.5, or 7.0.2 on the corresponding branch, preferably to the latest supported security release, and verify that the update completed successfully. Affected 7.1 beta installations should move to beta2 or later.
- What products are affected by CVE-2026-60137?
- Wordpress.
- How severe is CVE-2026-60137?
- CVE-2026-60137 has a CVSS v3.1 score of 5.9 (Medium) and an EPSS score of 5.3% (93rd percentile) as of Nov 27, 2026.
Recent activity
386 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.