Stored Cross-Site Scripting in BetterDocs Plugin for WordPress
Key Information:
- Vendor
WordPress
- CVE ID
- CVE ID:
- CVE-2026-12157
- Vendor
- CVE Published:
- 19 June 2026
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Partly: Works over the network, but needs a login
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Monitor
Low risk for most. Patch in your normal cycle.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory β2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Betterdocs β Ai Documentation, Knowledge Base, Docs, Wikis, Faq With Chatbot. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Monitor"
- Its CVSS severity is medium (6.4).
What is CVE-2026-12157?
The BetterDocs plugin for WordPress presents a vulnerability allowing stored cross-site scripting (XSS) exploitation. This flaw arises from inadequate input sanitization and output escaping in the CategorySlateLayout::render() method, where the blockId attribute is directly included in the HTML class attribute without proper use of esc_attr(). Such a vulnerability permits authenticated attackers with contributor-level access or higher to inject arbitrary web scripts into pages. These scripts execute when a user visits the compromised page, potentially leading to session hijacking, data leakage, or redirecting users to malicious sites.
Affected Version(s)
BetterDocs β AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot 0 <= 4.5.3
References
More WordPress Vulnerabilities
Object Injection in Ultimate Member
Unauthorized Password Reset in User Registration Aide Plugin for WordPress
Remote Code Execution in WP Duplicate Plugin
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction