Description
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.
Published: 2026-07-16
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability arises because the BetterDocs WordPress plugin does not sanitize an AI‑generated documentation summary before storing and rendering it. The lack of sanitization allows an attacker to inject a malicious payload into the summary, which is then saved to the database. When any visitor, including site administrators, views the affected page, the stored payload is output directly and executes in the visitor’s browser, leading to client‑side code execution. The impact includes potential compromise of user sessions, defacement of site content, and the capacity for an attacker to run arbitrary scripts from the client side.

Affected Systems

WordPress installations that use the BetterDocs plugin with a version earlier than 4.5.5 are affected. The vulnerability is tied to the AI Doc Summarizer feature, which is accessible to unauthenticated users and is active in all affected plugin releases before the 4.5.5 update.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity, and the EPSS score of less than 1% suggests a very low current exploitation probability. It is not listed in CISA’s KEV catalog. The likely attack vector is web‑based and requires no authentication; any attacker can submit a malicious AI prompt to store the payload. Exploitation succeeds when an end‑user or administrator visits the page that displays the vulnerable summary, triggering script execution in the victim’s browser.

Generated by OpenCVE AI on August 1, 2026 at 08:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the BetterDocs plugin to version 4.5.5 or newer, which removes the vulnerability.
  • If an upgrade is not immediately possible, disable the AI Doc Summarizer feature or restrict its endpoint to authenticated users only.
  • Implement a strict Content Security Policy (CSP) to block inline scripts and mitigate the effects of XSS if the plugin remains in use.

Generated by OpenCVE AI on August 1, 2026 at 08:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 16 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-79
Metrics cvssV3_1

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

ssvc

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


Thu, 16 Jul 2026 06:30:00 +0000

Type Values Removed Values Added
Description 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.
Title BetterDocs < 4.5.5 - Unauthenticated Stored XSS via AI Doc Summarizer Prompt Injection
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: WPScan

Published:

Updated: 2026-07-16T12:33:27.605Z

Reserved: 2026-06-05T12:01:56.518Z

Link: CVE-2026-11371

cve-icon Vulnrichment

Updated: 2026-07-16T12:33:20.875Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T09:00:04Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')