{
 "id": "WPSEC-2026-1642",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1642/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1642/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1642/index.md",
 "title": "Visual Portfolio, Photo Gallery & Post Grid <= 3.8.2 - Authenticated (Contributor+) Sensitive Information Exposure via Custom Query",
 "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.",
 "plugin": {
  "slug": "visual-portfolio",
  "name": "Visual Portfolio, Photo Gallery & Post Grid",
  "full_name": "Gallery by Visual Portfolio",
  "wordpress_org": "https://wordpress.org/plugins/visual-portfolio/",
  "advisories_url": "https://wpsec.com/vuln/plugin/visual-portfolio/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/visual-portfolio"
 },
 "type": "SENSITIVE DATA DISCLOSURE",
 "cwe": [
  "CWE-200"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.3,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "3.9.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 3.9.0"
  ]
 },
 "introduced_in": null,
 "fixed_in": "3.9.0",
 "remediation": "Update to 3.9.0 or later.",
 "fix_released": "2026-10-24T08:22:01+00:00",
 "published": "2026-10-25T08:43:04+00:00",
 "updated": "2026-10-24T13:33:09.118700+00:00",
 "also_published_as": null,
 "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/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/visual-portfolio",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-10-25"
 }
}