BetterDocs <= 4.8.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Heading 'id' Attribute in Post Content

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-75980
CVSS 6.4 (Medium)
Publicly Published August 31, 2026
Last Updated September 1, 2026
Researcher Wordfence PRISM - Wordfence

Description

The BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Heading 'id' Attribute in Post Content in all versions up to, and including, 4.8.1 due to insufficient input sanitization and output escaping. 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. The exploit survives wp_kses_post because entity-encoded quotes in a heading id attribute are treated as a single legitimate attribute value at save time; the dangerous payload only materialises after process_content_for_toc() calls html_entity_decode() on the stored content and the broken id is extracted by a lazy regex before being echoed unescaped into the Table of Contents output.

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

References

Share

Vulnerability Details for BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot

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

Recent vulnerabilities in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot

# Title CVE ID CVSS Researchers Date
1 BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot <= 4.6.2 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2026-65562 6.4 Ananda Dhakal July 24, 2026
2 BetterDocs <= 4.6.0 - Authenticated (Custom+) SQL Injection via 'lang' Parameter CVE-2026-15104 6.5 Wordfence PRISM July 9, 2026
3 BetterDocs <= 4.5.4 - Unauthenticated Stored Cross-Site Scripting CVE-2026-11371 7.2 Drew Webber (mcdruid) June 25, 2026
4 BetterDocs <= 4.5.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'blockId' Block Attribute CVE-2026-12157 6.4 Craniums June 18, 2026
5 BetterDocs <= 4.3.11 - Missing Authorization to Authenticated (Subscriber+) Unauthorized AI API Usage CVE-2026-6393 4.3 h0xilo April 23, 2026
6 BetterDocs <= 4.3.8 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes CVE-2026-3875 6.4 Muhammad Yudha - DJ April 15, 2026
7 BetterDocs <= 4.3.10 - Unauthenticated Information Exposure CVE-2026-42644 5.3 hivesec March 18, 2026
8 BetterDocs <= 4.3.3 - Authenticated (Contributor+) Sensitive Information Exposure CVE-2025-14980 6.5 Dmitrii Ignatyev January 8, 2026
9 BetterDocs <= 4.1.1 - Missing Authorization to Private And Password-Protected Posts Information Disclosure CVE-2025-7499 5.3 xitsec August 15, 2025
10 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

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