PT-2026-50837 · WordPress · Betterdocs

·

CVE-2026-12157

·

Published

2026-06-19

·

Updated

2026-06-22

CVSS v3.1

6.4

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions BetterDocs - Knowledge Base Docs & FAQ Solution for Elementor & Block Editor versions prior to 4.5.4
Description Stored Cross-Site Scripting occurs via the blockId attribute of the 'betterdocs/category-slate-layout' Gutenberg block. The issue stems from insufficient input sanitization and output escaping in the CategorySlateLayout::render() function, which echoes the blockId attribute directly into an HTML class attribute without using esc attr(). This allows authenticated attackers with contributor-level access or higher to inject arbitrary web scripts into pages, which execute when a user visits the affected page.
Recommendations Update to a version newer than 4.5.3. As a temporary workaround, restrict access for users with contributor-level permissions to edit Gutenberg blocks until the update is applied.

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-12157

Affected Products

Betterdocs