CVE-2026-75980: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpdevteam BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot
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.
CVSS v3.1
Score 6.4medium
Affected software
wpdevteam
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot plugin for WordPress is vulnerable to stored cross-site scripting via the heading 'id' attribute in post content in all versions up to and including 4.8.1. Authenticated attackers with contributor-level access or higher can inject arbitrary web scripts that execute when users access the injected page. The vulnerability exists because entity-encoded quotes in the heading id attribute bypass wp_kses_post sanitization and are decoded by process_content_for_toc(), which uses a regex to extract the id and outputs it unescaped into the Table of Contents, enabling script execution.
Potential Impact
An attacker with contributor-level or higher privileges can inject malicious scripts that execute in the context of users viewing the affected pages. This can lead to theft of user credentials, session hijacking, or other actions permitted by the victim's privileges. The vulnerability does not require user interaction beyond viewing the page and does not affect availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict contributor-level access to trusted users only and consider disabling the Table of Contents feature if feasible. Monitor vendor communications for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-08-18T18:21:26.796Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a9664a9acd9273b494509b3
Added to database: 09/01/2026, 05:37:45 UTC
Last enriched: 09/07/2026, 15:07:12 UTC
Last updated: 10/15/2026, 06:48:18 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.