Skip to main content
EPSS 0.3%top 73%

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

0
Medium
VulnerabilityCVE-2026-75980cvecve-2026-75980cwe-79
Published: 09/01/2026 (09/01/2026, 05:30:41 UTC)
Source: CVE Database V5
Vendor/Project: wpdevteam
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Affected software

wpdevteam

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

Affected versions
>=0 <=4.8.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:07:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses