{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4634",
 "modified": "2026-12-04T16:42:59Z",
 "published": "2026-12-04T16:42:59Z",
 "summary": "Gallery : FooGallery <= 3.3.37 - Authenticated (Contributor+) Stored Cross-Site Scripting via Block 'thumbnail_size' and 'thumbnail_dimensions' Attributes",
 "details": "The FooGallery Photo Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'thumbnail_size' and 'thumbnail_dimensions' attributes of the FooGallery block in all versions up to, and including, 3.3.37, due to insufficient input validation. The plugin accepts these attributes as arrays with any keys, and the gallery templates use the whole array as their rendering arguments. Extra keys such as 'link_attributes' and 'image_attributes' are then merged into the thumbnail link and image tags, so the link's href can be replaced with a javascript: URL. 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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "foogallery"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "3.3.48"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 3.3.48"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4634/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/foogallery/tags/3.3.48/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/foogallery/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4634/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
