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.
Published: 2026-04-24
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized Consumption of Paid AI Credit
Action: Upgrade Plugin
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 27 Apr 2026 23:15:00 +0000

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

Fri, 24 Apr 2026 04:00:00 +0000

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'}


Subscriptions

Wordpress Wordpress
Wpdevteam Betterdocs – Knowledge Base Docs & Faq Solution For Elementor & Block Editor
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-24T10:46:24.083Z

Reserved: 2026-04-15T20:07:58.184Z

Link: CVE-2026-6393

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-04-24T04:16:22.607

Modified: 2026-04-24T14:38:26.740

Link: CVE-2026-6393

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T14:30:33Z

Weaknesses