CVE-2026-12157
Last modified
CVE-2026-12157 is a medium-severity vulnerability rated 6.4/10 on the CVSS scale. 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(). EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-12157?
How severe is CVE-2026-12157?
How do I fix CVE-2026-12157?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12143form-data is a library for creating readable multipart/form-…8.7
- CVE-2026-12144The Wholesale for WooCommerce plugin for WordPress is vulner…8.8
- CVE-2026-1215The MMA Call Tracking plugin for WordPress is vulnerable to …4.3
- CVE-2026-12151Impact: The undici WebSocket client enforces maxPayloadSize …7.5
- CVE-2026-12153The WP Learn Manager plugin for WordPress is vulnerable to a…9.8
- CVE-2026-12154The Reviews Widgets for Google, Yelp & TripAdvisor plugin fo…6.4
- CVE-2026-12158The RegistrationMagic – User Registration Forms Plugin plugi…8.8
- CVE-2026-1216The RSS Aggregator plugin for WordPress is vulnerable to Ref…7.2
- CVE-2026-12161Improper input validation in the SSH Elevate Shell feature a…8.8
- CVE-2026-12162Improper host validation in the social login autofill featur…5.5
- CVE-2026-12163Fortra File Integrity Monitoring (FIM), formerly Tripwire En…4.8
- CVE-2026-12164Fortra File Integrity Monitoring (FIM), formerly Tripwire En…4.4
Are you affected by CVE-2026-12157?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
