SQL injection via unsanitized author exclusion
Published Jul 17, 2026 · Updated Jul 17, 2026
SQL injection in WP_Query in affected WordPress releases allows attackers to read database data via crafted author exclusions. WP_Query sanitizes author__not_in only when it is an array, then casts other inputs to arrays and interpolates their raw values into a NOT IN SQL clause. The vulnerable ranges are 6.8.0 through 6.8.5, 6.9.0 through 6.9.4, and 7.0.0 through 7.0.1; exploitation requires a plugin or theme to pass attacker-controlled input to the parameter.
Summary
What happened
SQL injection in WP_Query in affected WordPress releases allows attackers to read database data via crafted author exclusions. WP_Query sanitizes author__not_in only when it is an array, then casts other inputs to arrays and interpolates their raw values into a NOT IN SQL clause. The vulnerable ranges are 6.8.0 through 6.8.5, 6.9.0 through 6.9.4, and 7.0.0 through 7.0.1; exploitation requires a plugin or theme to pass attacker-controlled input to the parameter.
The record
- CVE
- CVE-2026-60137
- Published
- Jul 17, 2026
- Updated
- Jul 17, 2026
- Vendor
- WordPress.org
- Product
- WordPress
- Classifications
- CWE-89, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 17, 2026CVE publishedPublication date reported by the CVE source.
- Jul 17, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.8.0 <6.8.6
- Affected versionversion=6.9.0 <6.9.5
- Affected versionversion=7.0.0 <7.0.2
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- wordpress-cve-2026-63030 detection PoCproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities Catalog entryknown exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo