{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3940",
 "modified": "2026-11-26T00:06:53Z",
 "published": "2026-11-26T00:06:53Z",
 "summary": "Mixed Media Gallery Blocks <= 3.5.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Gallery Item Link URL",
 "details": "The SimpLy Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the gallery item link URL (the 'pgc_sgb_link' attachment meta and the gallery block's 'itemsMetaDataCollection' attribute) in all versions up to, and including, 3.5.0, due to insufficient validation of the link URL scheme. The link is stored after only sanitize_text_field() or kses filtering, neither of which removes a javascript: URL, and the gallery front-end scripts assign it to the item's link button href without checking it. 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 clicks the injected gallery link button.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "simply-gallery-block"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "1.5.1"
      },
      {
       "fixed": "3.5.1"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 1.5.1 before 3.5.1"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3940/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/simply-gallery-block/tags/3.5.1/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/simply-gallery-block/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3940/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
