CVE-2026-6393

BetterDocs <= 4.3.11 - Missing Authorization to Authenticated (Subscriber+) Unauthorized AI API Usage

Published Apr 24, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
The BetterDocs plugin for WordPress is vulnerable to Missing Authorization in versions up to and including 4.3.11. This is due to a missing capability check in the generate_openai_content_callback() function, which relies solely on a nonce rather than verifying user permissions. This makes it possible for authenticated attackers, with subscriber-level access and above, to trigger OpenAI API calls using the site's configured API key with arbitrary user-controlled prompts, leading to unauthorized consumption of the site owner's paid AI API quota.

Analysis

AI-generated

Technical impact

The exploit allows an authenticated user with subscriber-level access or higher to call the OpenAI API through the plugin’s "Write With AI" feature without any capability checks. This means the attacker can submit arbitrary prompts, causing the site’s stored OpenAI key to be used and charged. The consequence is unauthorized financial expense and potential exposure of content the site owner did not intend to share with the AI service. The weakness is a missing access control, classed as CWE‑862.

Affected Systems

Any WordPress site running the BetterDocs Knowledge Base plugin version 4.3.11 or earlier, including the 4.3.6 tag referenced in the code review. The vulnerability is present in the generate_openai_content_callback() function in the Core/WriteWithAI.php file.

Risk and Exploitability

The CVSS score is 4.3, indicating moderate severity. The EPSS score is below 1 %, suggesting the current exploitation likelihood is low, and the vulnerability is not listed in the CISA KEV catalog. However, once a site has a valid OpenAI key and an authenticated subscriber account, the attacker can trivially trigger consumption by accessing the corresponding AJAX endpoint. The attack vector is expected to be via the normal WordPress admin interface or API calls that present a valid nonce but do not enforce capability checks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the BetterDocs plugin to version 4.3.12 or newer, where the missing capability check has been added.
  • If an upgrade is impossible in the short term, disable the "Write With AI" feature or remove the plugin’s AI generation code from the site’s source files.
  • Revoke or rotate the OpenAI API key stored in the plugin’s settings to prevent further use by malicious requests.
  • Continuously monitor the site's OpenAI API usage logs for unexpected or inflated request volumes.

Generated by OpenCVE AI on April 28, 2026 at 14:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Wpdevteam
Wpdevteam betterdocs – Knowledge Base Docs & Faq Solution For Elementor & Block Editor
Vendors & Products Wordpress
Wordpress wordpress
Wpdevteam
Wpdevteam betterdocs – Knowledge Base Docs & Faq Solution For Elementor & Block Editor
Type Values Removed Values Added
Description The BetterDocs plugin for WordPress is vulnerable to Missing Authorization in versions up to and including 4.3.11. This is due to a missing capability check in the generate_openai_content_callback() function, which relies solely on a nonce rather than verifying user permissions. This makes it possible for authenticated attackers, with subscriber-level access and above, to trigger OpenAI API calls using the site's configured API key with arbitrary user-controlled prompts, leading to unauthorized consumption of the site owner's paid AI API quota.
Title BetterDocs <= 4.3.11 - Missing Authorization to Authenticated (Subscriber+) Unauthorized AI API Usage
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 24, 2026, 10:46 AM
Reserved
Apr 15, 2026, 8:07 PM
Status
Deferred
Published
Apr 24, 2026, 4:16 AM
Modified
Jun 17, 2026, 11:00 AM