SQL Injection Affecting johnpbloch/wordpress-core package, versions >=6.8.0, <6.8.6>=6.9.0, <6.9.5>=7.0.0, <7.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Attacked
EPSS
78.31% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-JOHNPBLOCHWORDPRESSCORE-18134059
  • published21 Jul 2026
  • disclosed16 Jul 2026
  • creditTF1T, dtro, haongo

Introduced: 16 Jul 2026

CVE-2026-60137  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade johnpbloch/wordpress-core to version 6.8.6, 6.9.5, 7.0.2 or higher.

Overview

johnpbloch/wordpress-core is a web software you can use to create a website or blog.

Affected versions of this package are vulnerable to SQL Injection in the WP_Query::get_posts() method of class-wp-query.php, which applies integer casting to the author__not_in query variable only when it is an array and otherwise concatenates the value directly into the post_author NOT IN (...) clause. An attacker can inject SQL into the posts query by supplying author__not_in as a non-array scalar value that reaches WP_Query, and on 6.9 and later this can be escalated to remote code execution when combined with the REST API batch-route confusion issue. Exploitation is facilitated rather than direct, requiring a code path that passes an attacker-influenced non-array author__not_in value into WP_Query, and the remote code execution escalation additionally depends on the 6.9+ REST API batch-route behavior.

CVSS Base Scores

version 4.0
version 3.1