CVE-2026-12157 - BetterDocs <= 4.5.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'blockId' Block Attribute
Summary
This entry details a vulnerability found in the target system. The exploit was published on 2026-06-19 and has garnered 176 views from the community. It is classified under the web apps category. Users are advised to review the source code in the Detail tab for technical specifics.
Zafiyet Ozet Bilgileri
Zafiyet Detayi (Turkce)
BetterDocs - WordPress için Elementor ve Blok Düzenleyici eklentisi için Bilgi Tabanı Dokümanları ve SSS Çözümü, 4.5.3'e kadar ve bu sürümler de dahil olmak üzere sürümlerde, Betterdocs/category-slate-layout Gutenberg bloğunun BlockId özelliği aracılığıyla Saklanan Siteler Arası Komut Dosyasına karşı savunmasızdır. Bunun nedeni, BlockId blok niteliğini esc_attr() olmadan doğrudan bir HTML sınıfı niteliğine ekleyen CategorySlateLayout::render() yöntemindeki yetersiz giriş temizleme ve çıkış kaçışıdır. Bu, katkıda bulunan düzeyinde erişime sahip ve üzeri kimlik doğrulaması olan saldırganların, kullanıcı enjekte edilen bir sayfaya eriştiğinde yürütülecek olan rastgele web komut dosyalarını sayfalara yerleştirmesine olanak tanır.
Orijinal Aciklama (Ingilizce)
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.
Download Source
Download the exploit source code for offline analysis and testing.
Download NowFile Size: ~3.4 KB | MD5: 37eb5712ee9e932c67fce50237f00375
No gallery images available.
No discussion yet.