CVE-2026-60137 – Critical WordPress Core SQL Injection (wp2shell)
Key takeaways
- Critical WordPress core SQL injection (author__not_in parameter) can be chained with CVE‑2026‑63030 to achieve pre‑authentication remote code execution.
- Affected versions: 6.8.x < 6.8.6, 6.9.x < 6.9.5, 7.0.x < 7.0.2.
- Listed in CISA KEV with active exploitation observed; exploit code is publicly available.
- Immediate patch to WordPress 6.9.5 or 7.0.2 (or later) is required; apply mitigations if you cannot patch immediately.
- Monitor for anomalous WP_Query usage and unexpected web‑shell uploads.
Overview#
On 2026‑07‑17 WordPress released a security advisory for a critical flaw in the core. The vulnerability resides in the author__not_in argument of the WP_Query class, which fails to properly sanitize input, leading to CWE‑89 (SQL injection). Because the flaw can be triggered without authentication, it was quickly added to the CISA KEV catalog on 2026‑07‑21. When combined with the concurrently disclosed CVE‑2026‑63030, REST batch route confusion, the two bugs form the “wp2shell” chain that grants unauthenticated remote code execution (RCE). Threat intel feeds reported active exploitation within 24 hours, and public proof‑of‑concepts are circulating.



