What the vulnerability does
01Description
The BetterDocs Pro plugin for WordPress is vulnerable to SQL Injection via the `get_current_letter_docs` and `docs_sort_by_letter` AJAX actions in all versions up to, and including, 3.7.0. This is due to the `limit` POST parameter being interpolated directly into a SQL query string before being passed to `$wpdb->prepare()`, which only parameterizes other variables. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The Encyclopedia feature must be enabled in BetterDocs Pro settings for the vulnerability to be exploitable.
Explanation of Vulnerability in Simple Terms
02Summary
BetterDocs Pro versions 3.7.0 and earlier contain a SQL injection vulnerability accessible over the network without authentication. An attacker can craft a malicious request to read sensitive data from the site's database, including user information and configuration details. Update to a version newer than 3.7.0 immediately.
What an attacker can do
03Attacker Capabilities
Read sensitive data from the site database without logging in.
Potential impact on your site
04Site Impact
Attackers can extract user data, credentials, and other sensitive information stored in your database.
Conditions required to exploit
05Prerequisites
Network access to the site; no authentication or user interaction required.
Key dates
06Disclosure timeline
May 7, 2026
CVE published
May 7, 2026
Record updated