BetterDocs Pro <= 3.7.0 - Unauthenticated SQL Injection via Encyclopedia 'limit' Parameter

7.5
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2026-4348
CVSS 7.5 (High)
Publicly Published May 6, 2026
Last Updated May 7, 2026
Researcher h0xilo

Description

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.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for BetterDocs Pro

Software Type Plugin
Software Slug betterdocs-pro
Patched? Yes
Remediation Update to version 3.7.1, or a newer patched version
Affected Version
  • <= 3.7.0
Patched Version
  • 3.7.1

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation