{
 "id": "WPSEC-2026-2728",
 "url": "https://wpsec.com/vuln/WPSEC-2026-2728/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-2728/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-2728/index.md",
 "title": "WP ImageViewer <= 3.0.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Image Alt Text",
 "description": "The WP ImageViewer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via image alt text in all versions up to, and including, 3.0.2. This is due to the viewer's front-end JavaScript reading an image's alt attribute, which the browser has already entity-decoded, and writing it into the viewer's description with innerHTML instead of inserting it as text. This makes it possible for authenticated attackers, with contributor-level access and above, to put an image linked to an image file in a post with an alt attribute holding entity-encoded HTML. That markup survives content filtering and injects arbitrary web scripts that execute in a user's browser when the image is opened in the viewer.",
 "plugin": {
  "slug": "wp-imageviewer",
  "name": "WP ImageViewer",
  "full_name": "WP ImageViewer",
  "wordpress_org": "https://wordpress.org/plugins/wp-imageviewer/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wp-imageviewer/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wp-imageviewer"
 },
 "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": "3.0.3",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 3.0.3"
  ]
 },
 "introduced_in": null,
 "fixed_in": "3.0.3",
 "remediation": "Update to 3.0.3 or later.",
 "fix_released": "2026-11-06T20:14:18+00:00",
 "published": "2026-11-07T20:41:06+00:00",
 "updated": "2026-11-07T11:06:47.148512+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-2728/",
  "https://plugins.svn.wordpress.org/wp-imageviewer/tags/3.0.3/",
  "https://wordpress.org/plugins/wp-imageviewer/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wp-imageviewer",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-07"
 }
}