# Visual Portfolio, Photo Gallery & Post Grid <= 3.8.2 - Authenticated (Contributor+) Sensitive Information Exposure via Custom Query

- **ID:** WPSEC-2026-1642
- **Plugin:** Gallery by Visual Portfolio (`visual-portfolio`), https://wordpress.org/plugins/visual-portfolio/
- **Affected versions:** all versions before 3.9.0
- **Fixed in:** 3.9.0 (Update to 3.9.0 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-10-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/visual-portfolio
- **Fix released:** 2026-10-24
- **Published:** 2026-10-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1642/

## Description

The Gallery by Visual Portfolio plugin for WordPress is vulnerable to Sensitive Information Exposure via the Custom Query posts source of its gallery blocks in all versions up to, and including, 3.8.2, due to saved custom queries being run with whatever post_status they name, without limiting them to statuses the user may read. This makes it possible for authenticated attackers, with contributor-level access and above, to save a gallery whose custom query asks for draft or private posts and view other authors' unpublished and private posts when the post is previewed or published.

## References

- https://wpsec.com/vuln/WPSEC-2026-1642/
- https://plugins.svn.wordpress.org/visual-portfolio/tags/3.9.0/
- https://wordpress.org/plugins/visual-portfolio/

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

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.
