{
 "id": "WPSEC-2026-1404",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1404/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1404/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1404/index.md",
 "title": "Picture Gallery – Frontend Image Uploads, AJAX Photo List <= 1.6.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'id' Shortcode Attribute",
 "description": "The Picture Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' attribute of the videowhisper_pictures shortcode in all versions up to, and including, 1.6.2 due to insufficient input sanitization and output escaping, as the attribute was inserted directly into JavaScript and HTML identifiers. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.",
 "plugin": {
  "slug": "picture-gallery",
  "name": "Picture Gallery – Frontend Image Uploads, AJAX Photo List",
  "full_name": "Picture Gallery – Frontend Image Uploads, AJAX Photo List",
  "wordpress_org": "https://wordpress.org/plugins/picture-gallery/",
  "advisories_url": "https://wpsec.com/vuln/plugin/picture-gallery/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/picture-gallery"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "1.7.21",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 1.7.21"
  ]
 },
 "introduced_in": null,
 "fixed_in": "1.7.21",
 "remediation": "Update to 1.7.21 or later.",
 "fix_released": "2026-10-20T19:55:16+00:00",
 "published": "2026-10-21T20:43:15+00:00",
 "updated": "2026-10-21T10:36:04.708049+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1404/",
  "https://plugins.svn.wordpress.org/picture-gallery/tags/1.7.21/",
  "https://wordpress.org/plugins/picture-gallery/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/picture-gallery",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "None seen",
  "as_of": "2026-10-21"
 }
}