What the vulnerability does
01Description
The BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot plugin for WordPress is vulnerable to generic SQL Injection via the 'lang' parameter in all versions up to, and including, 4.6.0 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with custom-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. Exploitation requires a supported multilingual plugin (WPML, Polylang, qTranslate, Weglot, or TranslatePress) to be active on the site, as the vulnerable code path is gated by Helper::is_multilingual_active().
Explanation of Vulnerability in Simple Terms
02Summary
BetterDocs versions up to 4.6.0 contain a SQL injection vulnerability in a database query that processes user input without proper sanitization. An authenticated attacker can craft malicious input to read sensitive data from the site's database, including user information and configuration details. The vulnerability requires a valid user account but no special privileges.
What an attacker can do
03Attacker Capabilities
Read sensitive data from the site database, including user records and site configuration.
Potential impact on your site
04Site Impact
User data and site configuration may be exposed to any authenticated user; immediate patching required.
Conditions required to exploit
05Prerequisites
Attacker must have a valid user account on the site; no special privileges required.
Key dates
06Disclosure timeline
July 10, 2026
CVE published