CVE-2026-4348
HighSummary
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. The issue arises from the `limit` POST parameter being interpolated directly into a SQL query string before being passed to `$wpdb->prepare()`.
Risk Assessment
Unauthenticated attackers can append additional SQL queries into existing ones, potentially leading to the extraction of sensitive information from the database. The Encyclopedia feature must be enabled in BetterDocs Pro settings for the vulnerability to be exploitable.
Recommendation
It is recommended to update the BetterDocs Pro plugin to the latest version to mitigate this vulnerability. Additionally, consider restricting access to AJAX functions for unauthorized users.
Other vulnerabilities in BetterDocs Pro plugin for WordPress
Original NVD description (English source)
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.

