{
 "id": "WPSEC-2026-2829",
 "url": "https://wpsec.com/vuln/WPSEC-2026-2829/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-2829/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-2829/index.md",
 "title": "Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 4.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'thumbnail_width' and 'thumbnail_height' Shortcode Attributes",
 "description": "The NextGEN Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'thumbnail_width' and 'thumbnail_height' attributes of the [ngg] shortcode in all versions from 3.50 up to, and including, 4.5.5. Shortcode attributes are copied into the gallery's display settings without validation, and LegacyImage::__get('size') writes the values unescaped into the width and height attributes that the legacy gallery templates print. 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": "nextgen-gallery",
  "name": "Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery",
  "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": 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": "3.50",
    "from_inclusive": true,
    "to": "4.5.6",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 3.50 before 4.5.6"
  ]
 },
 "introduced_in": "3.50",
 "fixed_in": "4.5.6",
 "remediation": "Update to 4.5.6 or later.",
 "fix_released": "2026-11-09T21:12:46+00:00",
 "published": "2026-11-10T21:42:30+00:00",
 "updated": "2026-11-10T00:16:04.003489+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-2829/",
  "https://plugins.svn.wordpress.org/nextgen-gallery/tags/4.5.6/",
  "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-11-10"
 }
}