# Photo Gallery – GT3 Image Gallery & Gutenberg Block Gallery <= 2.7.7.32 - Authenticated (Contributor+) Insecure Direct Object Reference to Private and Password-Protected Gallery Disclosure via 'gt3-gallery' Shortcode and Gallery Blocks

- **ID:** WPSEC-2026-2817
- **Plugin:** Photo Gallery – GT3 Image Gallery & Gutenberg Block Gallery (`gt3-photo-video-gallery`), https://wordpress.org/plugins/gt3-photo-video-gallery/
- **Affected versions:** all versions before 2.7.7.33
- **Fixed in:** 2.7.7.33 (Update to 2.7.7.33 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 Low, affected versions Low (as of 2026-11-10)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gt3-photo-video-gallery
- **Fix released:** 2026-11-09
- **Published:** 2026-11-10
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2817/

## Description

The Photo Gallery plugin for WordPress is vulnerable to Insecure Direct Object Reference via the 'gt3-gallery' shortcode, its REST render route, and the gallery and category sources of the plugin's blocks in all versions up to, and including, 2.7.7.32. This is due to missing checks on the gallery's post status and password before a gallery is rendered from a user-supplied ID. This makes it possible for authenticated attackers, with Contributor-level access and above, to expose the images of private, draft or password-protected galleries they are not allowed to view.

## References

- https://wpsec.com/vuln/WPSEC-2026-2817/
- https://plugins.svn.wordpress.org/gt3-photo-video-gallery/tags/2.7.7.33/
- https://wordpress.org/plugins/gt3-photo-video-gallery/

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

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.
