# BetterDocs <= 4.9.7 - Unauthenticated Sensitive Information Exposure via Nested Categories Fragment Cache

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

## Description

The BetterDocs plugin for WordPress is vulnerable to Sensitive Information Exposure via the nested sub-category list fragment cache in versions 4.8.0 up to, and including, 4.9.7. The cached HTML is keyed on the lists query arguments and on whether the viewer can read private docs, but not on the viewers roles, while the docs query it caches includes the logged-in viewers own private docs. This makes it possible for unauthenticated attackers to be served, for up to six hours, a listing rendered for a logged-in author, exposing the titles and links of that authors private docs, and on sites with content restriction rules, docs those rules hide from visitors.

## References

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

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

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.
