Skip to main content

BetterDocs WordPress Plugin CVE-2026-6393

| EUVDEUVD-2026-25394 MEDIUM
Missing Authorization (CWE-862)
2026-04-24 Wordfence GHSA-hpvr-gqf8-j82g
4.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Create or compromise subscriber account
  2. Delivery
    Obtain nonce from authenticated session
  3. Exploit
    Send request to callback function
  4. Execution
    Bypass capability check
  5. Persist
    Trigger OpenAI API call
  6. Impact
    Exhaust API quota

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to possess a valid WordPress user account with subscriber-level privileges or higher (this includes Author, Editor, and Administrator roles). The BetterDocs plugin must be installed and activated, with OpenAI integration configured (an API key must be stored in the plugin settings). The attacker must have network access to the WordPress site and knowledge of or ability to obtain a valid nonce token for the generate_openai_content_callback() function (nonces are typically present in WordPress admin pages or can be obtained via CSRF-like techniques if the site lacks additional request validation). No special configuration of the plugin is required-default installation with an active OpenAI API key is sufficient for exploitation. The vulnerability is limited by: (1) the requirement for prior authentication (not unauthenticated), (2) reliance on the attacker already having subscriber access (not exploitable via account creation unless open registration is enabled), and (3) the absence of a public exploit, reducing likelihood of automated mass exploitation.

Impact

CVSS 4.3 reflects low to moderate severity: the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N indicates network accessibility with low complexity, requiring authenticated access (PR:L), but the impact is confined to integrity (I:L) with no confidentiality or availability impact measured by the score. However, real-world risk is notably higher than the CVSS base score suggests. The vulnerability requires only subscriber-level access (a common default WordPress role), and the integrity impact undersells the actual threat: attackers can incur arbitrary financial costs on the site owner's OpenAI account without limit, making this a resource exhaustion/financial abuse vector. The absence of rate limiting in the callback suggests an attacker could rapidly deplete an API quota. EPSS score and KEV status are not provided; if this CVE were to appear in CISA KEV (indicating active targeting), priority would increase significantly. No POC has been identified, reducing immediate exploitation likelihood but not the underlying permission model flaw. Organizations running BetterDocs should assess their subscriber user base and whether untrusted users have been granted subscriber access.

Exploit ScenarioDerived

An attacker with a compromised or legitimate subscriber account (common in multi-author WordPress sites) logs into the WordPress dashboard or sends an authenticated request to the BetterDocs OpenAI callback endpoint. The attacker crafts a request with an arbitrary prompt (e.g., a complex code generation or translation task) and a valid nonce token copied from an admin page. Because the generate_openai_content_callback() function lacks a capability check, the request succeeds, triggering an OpenAI API call that consumes the site owner's API credits. The attacker repeats this process rapidly, exhausting the monthly quota and generating unexpected billing charges to the site owner's OpenAI account.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 24, 2026

BetterDocs plugin for WordPress versions up to 4.3.11 allows authenticated subscribers and higher to trigger arbitrary OpenAI API calls using the site's configured API key due to missing capability checks in the generate_openai_content_callback() function. An attacker with subscriber-level access can supply arbitrary prompts to exhaust the site owner's paid AI API quota without authorization, resulting in unauthorized financial impact and service degradation. No public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

Update the BetterDocs plugin to a version newer than 4.3.11 that includes capability checks in the generate_openai_content_callback() function. The WordPress plugin repository Trac shows fixes have been applied; upgrade to the latest available version from the WordPress Plugin Directory. Alternatively, if an immediate patch is not available, restrict subscriber-level user access by reviewing user roles in WordPress admin (Users menu) and downgrading unnecessary subscriber accounts to a role below subscriber or removing their access entirely. Limit OpenAI API key scope and implement usage alerts in your OpenAI account dashboard to monitor for unexpected quota consumption. Review WordPress user access logs to identify if any unauthorized OpenAI API calls have occurred under subscriber accounts. Apply principle of least privilege: assign the 'Contributor' role or lower to users who do not require OpenAI integration, as this vulnerability is exclusive to subscriber-level access and above.

Affected VersionsENISA

BetterDocs – Knowledge Base Docs & FAQ Solution for Elementor & Block Editor 0 ≤4.3.11

Affected Packages

euvd betterdocs_knowledge_base_docs_faq_solution_for_elementor_block_editor no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the generate_openai_content_callback() function within the WriteWithAI.php component of the BetterDocs plugin. The function validates nonce tokens (CSRF protection) but fails to implement WordPress capability checks via functions like current_user_can() that enforce role-based permissions. CWE-862 (Missing Authorization) classifies this as an access control flaw where permission validation is absent entirely. The function directly processes user-supplied prompts and forwards them to OpenAI's API using the site's stored API credentials, bypassing any authorization layer that should restrict this functionality to administrators only.

Know when Betterdocs Knowledge Base Docs Faq Solution For Elementor Block Editor gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy