CVE-2026-12157: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot
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.
AI Analysis
Technical Summary
The BetterDocs - Knowledge Base Docs & FAQ Solution 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. The root cause is insufficient input sanitization and lack of output escaping in the CategorySlateLayout::render() method, which directly inserts the blockId attribute into an HTML class attribute without using esc_attr(). This flaw allows authenticated attackers with contributor-level permissions or higher to inject arbitrary JavaScript that executes in the context of users viewing the injected pages.
Potential Impact
An attacker with contributor-level access or higher can inject persistent malicious scripts into pages via the blockId attribute. These scripts execute in the browsers of users who visit the compromised pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability does not affect availability but impacts confidentiality and integrity of user sessions and data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and consider disabling or limiting use of the affected Gutenberg block. Monitor official channels for updates from wpdevteam regarding patches or workarounds.
CVE-2026-12157: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot
Description
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.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The BetterDocs - Knowledge Base Docs & FAQ Solution 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. The root cause is insufficient input sanitization and lack of output escaping in the CategorySlateLayout::render() method, which directly inserts the blockId attribute into an HTML class attribute without using esc_attr(). This flaw allows authenticated attackers with contributor-level permissions or higher to inject arbitrary JavaScript that executes in the context of users viewing the injected pages.
Potential Impact
An attacker with contributor-level access or higher can inject persistent malicious scripts into pages via the blockId attribute. These scripts execute in the browsers of users who visit the compromised pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability does not affect availability but impacts confidentiality and integrity of user sessions and data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and consider disabling or limiting use of the affected Gutenberg block. Monitor official channels for updates from wpdevteam regarding patches or workarounds.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-06-12T18:27:41.912Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a34df96f198dc38c19de550
Added to database: 6/19/2026, 6:20:06 AM
Last enriched: 6/19/2026, 6:36:29 AM
Last updated: 6/19/2026, 9:58:20 PM
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.