Quick answers
- Is CVE-2026-12157 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-12157 being exploited in the wild.
- How severe is CVE-2026-12157?
- Medium severity, with a CVSS score of 6.4, published 19 June 2026.
- Which products and versions are affected?
- WPDeveloper BetterDocs up to, and including, 4.5.3.
- Is there a fix for CVE-2026-12157?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-12157 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-12157?
- Check whether you run WPDeveloper BetterDocs at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The BetterDocs plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) due to insufficient input sanitization and output escaping in the CategorySlateLayout::render() method. Specifically, the 'blockId' attribute of the 'betterdocs/category-slate-layout' Gutenberg block is echoed directly into an HTML class attribute without using the esc_attr() function. This allows authenticated attackers with contributor-level permissions or higher to inject arbitrary web scripts. These scripts are stored on the server and execute in the context of any user's browser who visits the compromised page. The vulnerability is present in all versions up to and including 4.5.3.
Affected products
- wpdevteam BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot up to, and including, 4.5.3
Timeline
- 2026-06-19: disclosed
- 2026-06-19: advisory
References
- https://plugins.trac.wordpress.org/browser/betterdocs/tags/4.3.12/includes/Editors/BlockEditor/Blocks/CategorySlateLayout.php
- https://plugins.trac.wordpress.org/browser/betterdocs/tags/4.3.12/includes/Editors/BlockEditor/Blocks/CategorySlateLayout.php
- https://plugins.trac.wordpress.org/browser/betterdocs/tags/4.5.3/includes/Editors/BlockEditor/Blocks/CategorySlateLayout.php
- https://plugins.trac.wordpress.org/browser/betterdocs/tags/4.5.3/includes/Editors/BlockEditor/Blocks/CategorySlateLayout.php
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3576713%40betterdocs&new=3576713%40betterdocs&sfp_email=&sfph_mail=
- https://www.wordfence.com/threat-intel/vulnerabilities/id/81f61ef0-b3c7-4c69-bd18-5e5f0ea09abc?source=cve