Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or register contributor-level WordPress account
-
DeliveryOpen Gutenberg editor on new or existing page
-
ExploitInsert betterdocs/category-slate-layout block
-
ExecutionSet blockId attribute to XSS payload
-
PersistPublish poisoned page
-
ImpactVictim browser loads page and executes injected script
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 a valid WordPress account with at minimum contributor-level privileges, as this is the lowest role permitted to create and publish Gutenberg block content via the block editor. The vulnerable code path activates only when a page containing a betterdocs/category-slate-layout block is rendered to a browser, meaning the block must actually be placed on a published page for victims to be exposed. The CVSS PR:L metric confirms the authentication requirement. Exploitation is further bounded to WordPress installations running BetterDocs version 4.5.3 or earlier with the Gutenberg block editor active. What limits exploitation: sites that restrict contributor registration, require administrator approval for content publication, or enforce a capability model where only trusted roles can author BetterDocs blocks are materially less exposed than open-registration documentation communities. |
| Impact | The CVSS 6.4 score is driven primarily by the Scope:Changed metric (S:C), reflecting that injected JavaScript executes in the victim's browser - a separate security context from the WordPress server. The PR:L metric confirms exploitation requires at minimum contributor-level WordPress authentication, which constrains the attacker pool compared to PR:N vulnerabilities but remains meaningful on community documentation sites, multi-author platforms, or any deployment allowing user registration. AC:L indicates no special timing or race conditions are needed beyond having a valid contributor account. No CISA KEV listing and no EPSS data were provided; no confirmed public exploit code exists at time of analysis. The real-world risk profile is moderate-to-significant for affected deployments: sites with locked-down contributor rosters have reduced exposure, while sites with open registration or multiple external contributors should treat this as an immediate patching priority. The UI:N metric reflects that the attacker need not induce any separate victim interaction to store the payload - delivery occurs automatically when any user visits the poisoned page, consistent with stored XSS behavior. |
| Exploit ScenarioDerived | An attacker who has obtained or registered a contributor-level WordPress account navigates to the block editor, inserts a betterdocs/category-slate-layout block, and sets the blockId attribute to a crafted value such as ' onmouseover=alert(document.cookie) x=' that escapes the HTML class attribute context and injects executable JavaScript. Once the page is published, every subsequent visitor - including site administrators - triggers the script on page load, enabling the attacker to exfiltrate session cookies, forge admin actions, or redirect users to phishing pages. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Stored Cross-Site Scripting in BetterDocs WordPress plugin (versions ≤4.5.3) allows authenticated contributors to inject persistent malicious scripts via the unescaped blockId attribute of the betterdocs/category-slate-layout Gutenberg block. The injected payload executes in the browser of any visitor who loads the compromised page, enabling session hijacking, credential theft, or admin-level privilege escalation against site operators. No public exploit identified at time of analysis, but the contributor-level authentication threshold makes this accessible on any WordPress site permitting open or shared content authorship.
RemediationAI
An upstream fix is available via WordPress plugin SVN changeset 3576713 (https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3576713%40betterdocs&new=3576713%40betterdocs), which addresses the missing esc_attr() call in CategorySlateLayout::render(). Administrators should update BetterDocs to the version released after 4.5.3 via the WordPress plugin dashboard as the primary remediation; note that the exact patched release version number was not specified in the available data and should be verified against the official WordPress plugin page before updating. As a compensating control prior to patching, administrators should audit and revoke contributor-level access for any untrusted or unnecessary accounts - reducing or eliminating the population of users who can author Gutenberg blocks. If the betterdocs/category-slate-layout block is not actively used, disabling the BetterDocs plugin entirely or restricting block editor capabilities to editor-level and above via a capability management plugin (e.g., Members) provides meaningful risk reduction with the trade-off of limiting documentation functionality.
Affected VersionsENISA
Affected Packages
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
BetterDocs (CPE: cpe:2.3:a:wpdevteam:betterdocs_-__ai_documentation,_knowledge_base,_docs,_wikis,_faq_with_chatbot) is a WordPress plugin providing knowledge base, FAQ, wiki, and documentation functionality integrated with both the Gutenberg block editor and Elementor. The vulnerable code resides in the CategorySlateLayout::render() method at includes/Editors/BlockEditor/Blocks/CategorySlateLayout.php (lines 66 and 97, confirmed via WordPress SVN at tags/4.5.3 and tags/4.3.12). The blockId block attribute - which identifies individual block instances - is echoed directly into an HTML class attribute without invoking WordPress's built-in esc_attr() sanitization function. This is a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) violation: user-controlled data flows from block editor input into rendered HTML output without encoding, and because the payload persists in the WordPress database as block content, every subsequent page load delivers the attack to new victims.
Know when Wordpress Plugin 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
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
PR:L confirmed by contributor-level requirement; S:C because injected script executes in victim browser context; A:N as no availability impact applies.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The BetterDocs - Knowledge Base Docs & FAQ Solution for Elementor & Block Editor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the blockId attribute of the betterdocs/category-slate-layout Gutenberg block in versions up to, and including, 4.5.3. This is due to insufficient input sanitization and output escaping in the CategorySlateLayout::render() method, which echoes the blockId block attribute directly into an HTML class attribute without esc_attr(). This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
EUVD-2026-37982
GHSA-hcf9-p628-6437
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB