Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-12721

CVE-2026-12721: Kirki WordPress Plugin SQLi Vulnerability

CVE-2026-12721 is a SQL injection flaw in the Kirki WordPress plugin that allows unauthenticated attackers to execute malicious SQL queries. This article covers the technical details, affected versions, and mitigation.

Published:

CVE-2026-12721 Overview

CVE-2026-12721 is an unauthenticated SQL injection vulnerability in the Kirki WordPress plugin. Versions before 6.0.13 fail to sanitize and escape a request parameter before using it in a SQL statement. Attackers can inject arbitrary SQL commands over the network without authentication or user interaction. The flaw is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command. WordPress sites using vulnerable Kirki releases are exposed to database content extraction and cross-site impact through the scope change indicated in the CVSS vector.

Critical Impact

Unauthenticated remote attackers can execute SQL injection against WordPress sites running Kirki before 6.0.13, exposing database contents without any credentials.

Affected Products

  • Kirki WordPress plugin versions before 6.0.13
  • WordPress sites with the Kirki Customizer Framework installed
  • Themes bundling vulnerable Kirki releases as a dependency

Discovery Timeline

  • 2026-07-31 - CVE-2026-12721 published to NVD
  • 2026-07-31 - Last updated in NVD database

Technical Details for CVE-2026-12721

Vulnerability Analysis

The Kirki plugin accepts a user-controlled value from an HTTP request and passes it into a SQL statement without applying sanitization or escaping. Because WordPress relies on $wpdb->prepare() and dedicated escape helpers to safely construct queries, bypassing these mechanisms permits direct injection of SQL syntax. The vulnerability requires no authentication and no user interaction, making it exploitable by any remote actor who can reach the WordPress site.

The scope change reflected in the CVSS vector indicates that a successful injection can affect resources beyond the immediately vulnerable component. Attackers can enumerate the wp_users table, extract password hashes, read arbitrary options, and pivot to further compromise. The vulnerability targets confidentiality; integrity and availability impacts are not directly rated, but data exfiltration from the database is a realistic outcome.

Root Cause

The root cause is missing input neutralization on a request parameter consumed by a database query inside Kirki. The value flows from the HTTP layer into a SQL string without parameterized binding or escaping through esc_sql() or equivalent helpers. This falls under CWE-89.

Attack Vector

Exploitation occurs over the network against any reachable WordPress endpoint served by the vulnerable plugin. An attacker crafts a request containing SQL payloads in the affected parameter. See the WPScan Vulnerability Report for technical specifics on the affected parameter and endpoint. No verified public exploit code is available at time of writing.

Detection Methods for CVE-2026-12721

Indicators of Compromise

  • HTTP requests to Kirki plugin endpoints containing SQL metacharacters such as ', ", UNION, SELECT, SLEEP(, or -- in parameter values
  • Anomalous outbound database query patterns from the WordPress host, including large SELECT operations against wp_users or wp_options
  • Unexpected creation of administrative users or modifications to the wp_users table
  • Web server access logs showing repeated probing of Kirki plugin paths under /wp-content/plugins/kirki/

Detection Strategies

  • Deploy a web application firewall rule set that inspects query strings and POST bodies for SQL injection signatures directed at Kirki endpoints
  • Enable MySQL general query logging temporarily to identify malformed or injected statements originating from the WordPress process
  • Correlate WordPress debug.log entries with web access logs to identify request patterns that trigger database errors

Monitoring Recommendations

  • Alert on HTTP 500 responses from Kirki plugin URIs, which frequently accompany failed injection attempts
  • Track version metadata for the Kirki plugin across managed WordPress deployments and flag any host running a release below 6.0.13
  • Monitor for new administrator accounts or password hash reads against the WordPress database

How to Mitigate CVE-2026-12721

Immediate Actions Required

  • Update the Kirki plugin to version 6.0.13 or later on every WordPress instance where it is installed
  • Audit wp_users, wp_usermeta, and wp_options for unauthorized changes since the plugin was installed
  • Rotate WordPress administrator passwords and any secrets stored in wp_options if compromise is suspected

Patch Information

The vendor addressed the SQL injection in Kirki 6.0.13. Refer to the WPScan Vulnerability Report for the disclosure record and remediation reference.

Workarounds

  • Disable and remove the Kirki plugin until the update to 6.0.13 or later is applied
  • Block requests to Kirki plugin endpoints at the web application firewall or reverse proxy layer
  • Restrict database privileges for the WordPress MySQL user to the minimum required, preventing schema modification through injection

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.