BetterDocs <= 4.5.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'blockId' Block Attribute

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-12157
CVSS 6.4 (Medium)
Publicly Published June 18, 2026
Last Updated June 19, 2026
Researcher Craniums

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot

Software Type Plugin
Software Slug betterdocs (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.5.4, or a newer patched version
Affected Version
  • <= 4.5.3
Patched Version
  • 4.5.4

Recent vulnerabilities in BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot

# Title CVE ID CVSS Researchers Date
1 BetterDocs <= 4.6.0 - Authenticated (Custom+) SQL Injection via 'lang' Parameter CVE-2026-15104 6.5 PRISM July 9, 2026
2 BetterDocs <= 4.3.11 - Missing Authorization to Authenticated (Subscriber+) Unauthorized AI API Usage CVE-2026-6393 4.3 h0xilo April 23, 2026
3 BetterDocs <= 4.3.8 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes CVE-2026-3875 6.4 Muhammad Yudha - DJ April 15, 2026
4 BetterDocs <= 4.3.10 - Unauthenticated Information Exposure CVE-2026-42644 5.3 hivesec March 18, 2026
5 BetterDocs <= 4.3.3 - Authenticated (Contributor+) Sensitive Information Exposure CVE-2025-14980 6.5 Dmitrii Ignatyev January 8, 2026
6 BetterDocs <= 4.1.1 - Missing Authorization to Private And Password-Protected Posts Information Disclosure CVE-2025-7499 5.3 xitsec August 15, 2025
7 BetterDocs <= 3.5.8 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2024-43227 6.4 João Pedro Soares de Alcântara August 9, 2024
8 BetterDocs <= 3.5.8 - Authenticated (Contributor+) Local File Inclusion CVE-2024-43129 8.8 João Pedro Soares de Alcântara August 7, 2024
9 BetterDocs – Best Documentation, FAQ & Knowledge Base Plugin with AI Support & Instant Answer for Elementor & Gutenberg <= 3.3.3 - Unauthenticated PHP Object Injection CVE-2024-30226 9.8 stealthcopter March 26, 2024
10 BetterDocs – Best Documentation, FAQ & Knowledge Base Plugin with AI Support & Instant Answer For Elementor & Gutenberg <= 3.4.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode CVE-2024-2845 6.4 Krzysztof Zając March 25, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation