WordPress SQL injection through unsanitised WP_Query author__not_in input

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-60137?

CVE-2026-60137 is a vulnerability classified as Improper Neutralization of Special Elements used in an SQL Command, affecting WordPress (affected versions: 6.8.0 – < 6.8.6, 6.9.0 – < 6.9.5, and other affected versions). This vulnerability is rated Medium, with a CVSS score of 5.9. This vulnerability has been observed being exploited in the wild.

Overview

Original source data

WordPress 6.8.x before 6.8.6, 6.9.x before 6.9.5, and 7.0.x before 7.0.2 does not properly sanitise the author__not_in parameter of WP_Query, which could allow SQL Injection when a plugin or theme passes untrusted input to the parameter.

Affected products and scope

  • WordPress 6.8.0 through 6.8.5: affected; the branch-specific fix is 6.8.6.
  • WordPress 6.9.0 through 6.9.4: affected; the branch-specific fix is 6.9.5.
  • WordPress 7.0.0 through 7.0.1: affected; the branch-specific fix is 7.0.2.
  • The WordPress vendor release note identifies versions before 6.8 as not affected by the issues addressed in that release.
  • The vendor advisory also lists WordPress 7.1 beta2 as containing the fix. The status of later or parallel branches should not be inferred from a fix for one branch unless separately verified.

Technical details

The affected input is the author__not_in argument consumed by WordPress WP_Query. The vulnerability description and vendor advisory establish that this argument is not properly sanitised when a plugin or theme supplies untrusted input, allowing SQL Injection. The attacker-controlled value must reach the argument through a plugin or theme; the base record does not identify a universal core endpoint or an extension path that applies to every site. The recorded attack profile is network reachable, requires no authentication or user interaction, and has high complexity, indicating that exploitation depends on additional conditions rather than a simple request against every installation. Public technical material identifies WordPress query handling as the affected component, but the deployment-specific input flow remains unknown. The vendor also states that on some later branches this flaw can be combined with a separate REST API batch-route confusion issue to produce Remote Code Execution; that consequence should not be attributed entirely to this flaw in isolation.

Exploitability

Reachability: The flaw is network reachable, requires no authentication, and requires no user interaction; its recorded complexity is high.

Preconditions: A plugin or theme must pass untrusted input to author__not_in. The evidence therefore does not establish that every installation in the affected branches has the same exploitable path.

Status: The record marks the vulnerability as known exploited and as having a public exploit. Public proof-of-concept tooling has been released, but this entry does not provide payloads or an exploitation sequence.

Limits: The evidence does not identify one plugin, theme, victim, or campaign responsible for every exploitation case.

Escalation: The vendor advisory states that combining this flaw with a separate REST API batch-route confusion issue can lead to Remote Code Execution on some branches. That is a chained risk and should be assessed separately.

Technical impact

An attacker who satisfies the input condition for author__not_in may perform SQL Injection and read data from the WordPress database. The lack of an authentication requirement and user interaction increases risk where the required input path is reachable, while high complexity and dependence on a plugin or theme limit the scope of straightforward exploitation. The supplied evidence does not confirm direct modification of data or service disruption for the standalone flaw. The vendor describes Remote Code Execution only when this issue is combined with a separate REST API batch-route flaw on some branches; that chained outcome should not be attributed to the SQL injection alone. Because public exploitation is documented and the record marks exploitation as known, unpatched internet-facing sites warrant priority handling.

Business impact

Successful exploitation could expose data returned from the WordPress database through SQL Injection. This may create data protection and incident response obligations for sites storing content, user information, or configuration data, but the available evidence does not establish a particular victim or disclosure event. The supplied assessment does not record a direct integrity or availability impact for the standalone flaw. The vendor also states that combining this flaw with a separate REST API batch-route confusion issue can lead to Remote Code Execution on some later branches, so that chained exposure requires separate review.

Remediation

  1. Upgrade WordPress 6.8.x to 6.8.6, WordPress 6.9.x to 6.9.5, or WordPress 7.0.x to 7.0.2, according to the deployed branch. These are the confirmed branch-specific fixes and should not be generalized into an open-ended claim about every later release.
  2. If operating the beta branch identified by the vendor, upgrade to 7.1 beta2, which the vendor lists as containing the fix.
  3. Review plugins and themes that pass untrusted data to author__not_in, then update, correct, or remove unsafe code paths after confirming the data flow.
  4. Because the record marks the vulnerability as known exploited and publicly exploitable, prioritize internet-facing sites. After updating, review accounts, privilege changes, database activity, and other suspicious behavior under the organisation's incident response process.
  5. The supplied record and vendor advisory do not confirm a specific temporary mitigation for this SQL injection. Do not treat blocking an unrelated or separate route as a confirmed fix for this vulnerability without independent validation.

Detection

  1. Inventory WordPress core versions across all sites, including headless deployments or WordPress backends that are not directly visible through the frontend.
  2. Review plugins and themes for data flows that pass request, API, or other external input into WP_Query through author__not_in. Prefer code review or static analysis rather than sending exploit payloads to production.
  3. For deployments where the related REST API batch risk may also apply, check external reachability of /wp-json/batch/v1 as a separate defense-in-depth review. This check does not prove or disprove the SQL injection by itself.
  4. After identifying sites that ran affected releases, review web, database, and authentication logs for anomalous activity during the exposure period. This is precautionary monitoring, not a confirmed indicator of compromise.
  5. The record does not provide a vulnerability-specific IOC. The absence of suspicious log entries does not prove that a site is safe or uncompromised.
Sources (18)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.