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

Published Sep 1, 2026
·
Updated

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 wpksespost 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 processcontentfortoc() calls htmlentitydecode() on the stored content and the broken id is extracted by a lazy regex before being echoed unescaped into the Table of Contents output.

Affected Software

1 affected component
BetterDocs BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot<=4.8.1

Event History

Sep 1, 2026
CVE Published
via MITRE·05:30 AM
Data Sourced
via MITRE·05:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What level of access does an attacker need?

An attacker must be authenticated with Contributor-level access or higher. No user interaction is required from the attacker after they submit the malicious content.

2

Who is exposed to the injected script?

The script executes in the browser of any user who accesses a page containing the malicious heading. Installations running BetterDocs versions through 4.8.1 should treat contributor-capable accounts as a relevant attack path.

3

What content path triggers the issue?

The malicious payload is placed in a heading id attribute in post content. It becomes active when BetterDocs processes that content for its Table of Contents, decodes the stored entities, and outputs the extracted id without escaping.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203