CVE-2026-12734 Overview
CVE-2026-12734 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot plugin for WordPress. The flaw affects all versions up to and including 2.3.0. The plugin fails to properly sanitize input and escape output for the connectorWidth block attribute in the Sidebar block. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected script executes in the browser of any user who views the affected page.
Critical Impact
Authenticated contributors can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft, defacement, and privilege escalation via administrator-triggered actions.
Affected Products
- weDocs: AI Powered Knowledge Base, Docs, Documentation, Wiki & AI Chatbot plugin for WordPress
- All versions up to and including 2.3.0
- Sidebar block component (assets/build/blocks/Sidebar/render.php)
Discovery Timeline
- 2026-07-03 - CVE-2026-12734 published to NVD
- 2026-07-06 - Last updated in NVD database
Technical Details for CVE-2026-12734
Vulnerability Analysis
The vulnerability resides in the Sidebar block renderer of the weDocs plugin. The block accepts a connectorWidth attribute that is written into the rendered HTML output without adequate sanitization or escaping. Because Gutenberg block attributes are persisted with the post content, malicious payloads survive across page loads, producing a stored XSS condition rather than a reflected one.
An authenticated user with the WordPress contributor role can create or edit a post that embeds the Sidebar block. By supplying a crafted value to the connectorWidth attribute, the attacker breaks out of the intended attribute context and injects arbitrary script into the rendered document. The payload triggers when any visitor, including editors and administrators, loads a page that contains the block.
The scope change indicated by the CVSS vector reflects that the injected script executes in the browser context of other users, allowing an attacker to act against victims beyond the vulnerable component.
Root Cause
The root cause is insufficient input sanitization and output escaping in the Sidebar block render function. The connectorWidth attribute is expected to hold a numeric width value but is concatenated into HTML output without functions such as esc_attr() or type-casting to an integer. See the Sidebar render.php line 138 and line 161 references for the vulnerable code paths.
Attack Vector
Exploitation requires the attacker to hold an authenticated account with contributor-level privileges or above. The attacker submits a post or page containing a weDocs Sidebar block whose connectorWidth attribute carries a JavaScript payload. Once the post is rendered, the payload executes in the browser of any user visiting the page. No user interaction beyond normal browsing is required from the victim.
The vulnerability manifests during block rendering. Refer to the Wordfence Vulnerability Report for additional technical details.
Detection Methods for CVE-2026-12734
Indicators of Compromise
- Post or page content containing weDocs Sidebar block markup with non-numeric values in the connectorWidth attribute.
- Unexpected <script> tags or JavaScript event handlers rendered inside Sidebar block HTML output.
- Outbound browser requests from site visitors to unfamiliar domains sourced from pages using the weDocs plugin.
- Contributor-role accounts editing or publishing pages that embed the Sidebar block for the first time.
Detection Strategies
- Scan wp_posts content for weDocs Sidebar block instances and inspect the connectorWidth attribute for non-integer characters.
- Monitor WordPress audit logs for post edits by contributor-level accounts that add or modify weDocs blocks.
- Deploy web application firewall rules that inspect block attribute values on POST requests to /wp-json/wp/v2/ and /wp-admin/post.php endpoints.
Monitoring Recommendations
- Enable verbose logging on WordPress editor endpoints and correlate contributor activity with new block insertions.
- Alert on browser-side Content Security Policy (CSP) violations reported from pages served by the weDocs plugin.
- Track newly registered contributor accounts against baseline behavior to identify accounts created specifically for exploitation.
How to Mitigate CVE-2026-12734
Immediate Actions Required
- Update the weDocs plugin to a version later than 2.3.0 that addresses the connectorWidth sanitization issue.
- Audit existing pages containing weDocs Sidebar blocks and remove any suspicious connectorWidth values.
- Review contributor-level accounts and remove any that are unused or unrecognized.
- Rotate session cookies and administrator credentials if evidence of exploitation is found.
Patch Information
The vendor released a fix tracked in the WordPress plugin changeset referenced in the Wordfence advisory. Site administrators should upgrade to the fixed release above 2.3.0 through the WordPress plugin update interface or via WP-CLI.
Workarounds
- Restrict the contributor role from using the weDocs Sidebar block through custom capability filters until the plugin is patched.
- Deploy a Content Security Policy that disallows inline scripts on pages rendered by the weDocs plugin.
- Temporarily deactivate the weDocs plugin on sites where updating is not immediately feasible and no fixed version is deployed.
# Update the weDocs plugin using WP-CLI
wp plugin update wedocs
# Verify the installed version is above 2.3.0
wp plugin get wedocs --field=version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

