# Document Gallery <= 5.1.1 - Unauthenticated Sensitive Information Exposure of Non-Public Attachments

- **ID:** WPSEC-2026-1957
- **Plugin:** Document Gallery (`document-gallery`), https://wordpress.org/plugins/document-gallery/
- **Affected versions:** all versions before 5.1.2
- **Fixed in:** 5.1.2 (Update to 5.1.2 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/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-10-29)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/document-gallery
- **Fix released:** 2026-10-28
- **Published:** 2026-10-29
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1957/

## Description

The Document Gallery plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 5.1.1, due to the dg_generate_icons and dg_generate_gallery AJAX actions, which are available to logged-out visitors, returning thumbnails and gallery listings for attachments without checking that the requester may read them. This makes it possible for unauthenticated attackers to obtain the titles, links and thumbnails of attachments belonging to private or draft content.

## References

- https://wpsec.com/vuln/WPSEC-2026-1957/
- https://plugins.svn.wordpress.org/document-gallery/tags/5.1.2/
- https://wordpress.org/plugins/document-gallery/

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

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.
