# Gallery : FooGallery <= 3.3.37 - Authenticated (Contributor+) Sensitive Information Exposure via 'attachment_ids' Gallery Override

- **ID:** WPSEC-2026-4635
- **Plugin:** FooGallery Photo Gallery : Image, Video & Masonry Galleries (`foogallery`), https://wordpress.org/plugins/foogallery/
- **Affected versions:** all versions before 3.3.48
- **Fixed in:** 3.3.48 (Update to 3.3.48 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-639
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/foogallery
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4635/

## Description

The FooGallery Photo Gallery plugin for WordPress is vulnerable to Sensitive Information Exposure via the 'attachment_ids' override in gallery shortcodes and blocks in all versions up to, and including, 3.3.37 due to the plugin rendering the supplied attachments without checking whether they are publicly viewable. This makes it possible for authenticated attackers, with contributor-level access and above, to expose private, draft or otherwise non-public media attachments and their details in a gallery on a page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4635/
- https://plugins.svn.wordpress.org/foogallery/tags/3.3.48/
- https://wordpress.org/plugins/foogallery/

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

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.
