# BetterDocs <= 4.9.5 - Authenticated (Contributor+) Sensitive Information Exposure of Draft and Private Docs via doc-categories REST Route

- **ID:** WPSEC-2026-2872
- **Plugin:** BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot (`betterdocs`), https://wordpress.org/plugins/betterdocs/
- **Affected versions:** all versions before 4.9.6
- **Fixed in:** 4.9.6 (Update to 4.9.6 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-200
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/betterdocs
- **Fix released:** 2026-11-10
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2872/

## Description

The BetterDocs plugin for WordPress is vulnerable to Sensitive Information Exposure via the betterdocs/v1/doc-categories REST route in all versions up to, and including, 4.9.5. The route queried draft, pending, private and scheduled docs for any user with the edit_docs capability and returned every match without checking whether that user could read or edit each doc. This makes it possible for authenticated attackers, with contributor-level access and above, to see the titles, slugs, authors and dates of other users' unpublished and private docs.

## References

- https://wpsec.com/vuln/WPSEC-2026-2872/
- https://plugins.svn.wordpress.org/betterdocs/tags/4.9.6/
- https://wordpress.org/plugins/betterdocs/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-2872/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
