CVE-2026-16146
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-16146 is a SQL Injection vulnerability in the "Invisible Anti-Spam & CAPTCHA — reCAPTCHA Alternative for All Forms" WordPress plugin (slug: gdpr-compliant-recaptcha-for-all-forms) by matthiasnordwig. It affects all versions up to and including 5.1, allowing authenticated attackers with editor-level access or above to inject additional SQL queries via Pattern JSON Keys/Values due to insufficient input escaping and improper SQL query preparation. The vulnerability was published on August 15, 2026, and assigned by Wordfence. It carries a CVSS v3.1 base score of 4.9 (Medium) (Wordfence, ENISA EUVD).

Technical details

The root cause is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command — SQL Injection). The vulnerability exists in the plugin's option and message-page handling classes (class-option.php and class-message-page.php), where user-supplied Pattern JSON keys and values are insufficiently escaped before being incorporated into SQL queries. An authenticated attacker with editor-level privileges or higher can craft malicious JSON input to append additional SQL statements to existing queries, enabling data extraction from the WordPress database (Wordfence, WordPress Trac).

Impact

Successful exploitation allows an authenticated attacker to extract sensitive information from the WordPress database, including user credentials, personal data, configuration secrets, and other stored content. The impact is limited to confidentiality — integrity and availability are not directly affected by this vulnerability. Because editor-level access is required, the attack surface is constrained to users with elevated WordPress roles, reducing but not eliminating risk, particularly in multi-author or multi-editor environments (Wordfence, ENISA EUVD).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access at the editor level or above, which significantly limits opportunistic exploitation (ENISA EUVD, Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the "Invisible Anti-Spam & CAPTCHA — reCAPTCHA Alternative for All Forms" plugin (slug: gdpr-compliant-recaptcha-for-all-forms) at version 5.1 or below using tools like WPScan or by inspecting plugin directories.
  2. Obtain Editor-Level Access: Authenticate to the WordPress site with an account holding editor-level privileges or higher (e.g., via compromised credentials, phishing, or a separate vulnerability).
  3. Identify Vulnerable Input: Navigate to the plugin's admin settings or pattern management interface where JSON-based pattern keys/values are accepted as input (corresponding to class-option.php and class-message-page.php).
  4. Craft Malicious Payload: Construct a JSON payload with SQL injection syntax embedded in the pattern keys or values (e.g., {"pattern_key' UNION SELECT user_login,user_pass FROM wp_users-- -": "value"}) to append a secondary SQL query.
  5. Submit and Extract Data: Submit the crafted payload through the plugin's interface. The insufficient escaping causes the injected SQL to execute, returning sensitive database contents (e.g., WordPress user hashes) in the application response or via error messages (Wordfence, WordPress Trac).

Indicators of compromise

  • Logs: WordPress access logs showing authenticated POST requests to plugin admin pages (e.g., wp-admin/admin.php?page=gdpr-compliant-recaptcha*) containing JSON payloads with SQL syntax such as UNION SELECT, --, or OR 1=1.
  • Database: Unexpected or anomalous database query logs (if MySQL general query log is enabled) showing appended SQL statements originating from the plugin's query context.
  • File System: No direct file-system artifacts expected for this SQL injection type; however, monitor for new admin accounts or modified user records in the wp_users table as a downstream indicator of credential theft.
  • Application Behavior: Unusual error messages or unexpected data returned in plugin admin pages that may reflect SQL query output leakage.

Mitigation and workarounds

Users should update the "Invisible Anti-Spam & CAPTCHA — reCAPTCHA Alternative for All Forms" plugin to a version beyond 5.1 once a patched release is available (changeset 3633500 has been committed to the WordPress plugin repository). Until a patched version is confirmed available, administrators should restrict editor-level and above access to trusted users only, and consider temporarily deactivating the plugin on sensitive sites. Monitoring WordPress admin activity and database query logs for anomalous SQL patterns is also recommended as a compensating control (WordPress Trac Changeset, Wordfence).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16145HIGH7.2
  • gdpr-compliant-recaptcha-for-all-forms
NoYesAug 15, 2026
CVE-2026-18387MEDIUM6.5
  • groundhogg
NoYesAug 15, 2026
CVE-2026-16586MEDIUM6.5
  • contest-gallery
NoYesAug 15, 2026
CVE-2026-17090MEDIUM6.4
  • beaver-builder-lite-version
NoYesAug 15, 2026
CVE-2026-16146MEDIUM4.9
  • gdpr-compliant-recaptcha-for-all-forms
NoYesAug 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management