CVE-2026-75980: BetterDocs stored cross-site scripting in heading id attribute

CVE-2026-75980 · Severity: medium · CVSS 6.4 · Published 2026-09-01

The BetterDocs WordPress plugin, used to create documentation and knowledge bases, contains a stored cross-site scripting vulnerability in the Table of Contents feature. Authenticated users with contributor-level access can inject malicious scripts into page headings that execute for all visitors viewing those pages, potentially compromising user data or enabling account takeover.

Quick answers

Is CVE-2026-75980 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-75980 being exploited in the wild.
How severe is CVE-2026-75980?
Medium severity, with a CVSS score of 6.4, published 1 September 2026.
Which products and versions are affected?
BetterDocs BetterDocs up to and including 4.8.1.
Is there a fix for CVE-2026-75980?
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-75980 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-75980?
Check whether anything you run is named in the advisory. 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 vulnerability is a stored cross-site scripting (XSS) flaw in the BetterDocs plugin's Table of Contents generation. The root cause lies in insufficient input sanitization and output escaping: entity-encoded quotes in heading id attributes bypass wp_kses_post() validation at save time, appearing as legitimate attribute values. When process_content_for_toc() calls html_entity_decode() on stored content and extracts the id via a regex, the payload is decoded and echoed unescaped into the Table of Contents output. The attack requires authentication with contributor-level or higher privileges. All versions up to and including 4.8.1 are affected. Attackers can inject arbitrary JavaScript that persists on affected pages and executes in the browsers of all visitors.

Affected products

  • BetterDocs BetterDocs up to and including 4.8.1

Timeline

  • 2026-09-01: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.