Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
Medium
VulnerabilityCVE-2026-12157cvecve-2026-12157cwe-79
Published: Fri Jun 19 2026 (06/19/2026, 04:31:32 UTC)
Source: CVE Database V5
Vendor/Project: wpdevteam
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Affected software

Affected versions
<=4.5.3

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/19/2026, 06:36:29 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses