{
 "id": "WPSEC-2026-4391",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4391/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4391/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4391/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4391.json",
 "title": "Photo Gallery, Sliders, Proofing and Themes <= 4.6.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shutter Lightbox Image Links",
 "description": "The NextGEN Gallery plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via image links opened in the Shutter and Shutter Reloaded lightboxes in all versions up to, and including, 4.6.1. This is due to the lightbox scripts accepting links with non-web schemes such as mailto:, whose URL keeps literal double quotes, and concatenating the link URL unescaped into an img src attribute assigned through innerHTML. 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 opens the crafted link in the lightbox. Exploitation requires the Shutter or Shutter Reloaded lightbox to be selected.",
 "plugin": {
  "slug": "nextgen-gallery",
  "name": "Photo Gallery, Sliders, Proofing and Themes",
  "full_name": "Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery",
  "wordpress_org": "https://wordpress.org/plugins/nextgen-gallery/",
  "advisories_url": "https://wpsec.com/vuln/plugin/nextgen-gallery/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/nextgen-gallery"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.9,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.6.2",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.6.2"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.6.2",
 "remediation": "Update to 4.6.2 or later.",
 "fix_released": "2026-12-01T16:07:38+00:00",
 "published": "2026-12-03T12:50:55+00:00",
 "updated": "2026-12-03T12:13:59.374048+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4391/",
  "https://plugins.svn.wordpress.org/nextgen-gallery/tags/4.6.2/",
  "https://wordpress.org/plugins/nextgen-gallery/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/nextgen-gallery",
 "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-12-03"
 }
}