CVE-2026-12157
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.
Published:Jun 19, 2026
Last Modified:Jun 22, 2026
EPS:Jun 19, 2026
EPSS Score:
CVSS Score:6.4
Affected Products
Vendor
Product
Action
Vendor
Wordpress
Product
Wordpress
Wordpress
Wordpress
Vendor
Wpdevteam
Product
Betterdocs – Ai Documentation, Knowledge Base, Docs, Wikis, Faq With Chatbot
Wpdevteam
Betterdocs – Ai Documentation, Knowledge Base, Docs, Wikis, Faq With Chatbot
Exploits
No exploit reference
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
