{
 "id": "WPSEC-2026-2849",
 "url": "https://wpsec.com/vuln/WPSEC-2026-2849/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-2849/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-2849/index.md",
 "title": "Lightbox with PhotoSwipe <= 5.18.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Image Caption Attributes",
 "description": "The Lightbox with PhotoSwipe plugin for WordPress is vulnerable to Stored Cross-Site Scripting via image caption sources (such as the data-lbwps-caption, data-lbwps-title, data-lbwps-description and data-lbwps-filename link attributes, the title and alt attributes, and figcaption content) in versions 5.9.0 up to, and including, 5.18.0. This is due to insufficient input sanitization in the frontend caption handling: a regular-expression filter removes only complete disallowed tags, so unterminated tags and, in later versions, anchor tags with javascript: URLs pass through, and the result is inserted into the lightbox as HTML. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts that execute when a user opens the image in the lightbox.",
 "plugin": {
  "slug": "lightbox-photoswipe",
  "name": "Lightbox with PhotoSwipe",
  "full_name": "Lightbox with PhotoSwipe",
  "wordpress_org": "https://wordpress.org/plugins/lightbox-photoswipe/",
  "advisories_url": "https://wpsec.com/vuln/plugin/lightbox-photoswipe/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/lightbox-photoswipe"
 },
 "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": "5.9.0",
    "from_inclusive": true,
    "to": "5.19.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 5.9.0 before 5.19.0"
  ]
 },
 "introduced_in": "5.9.0",
 "fixed_in": "5.19.0",
 "remediation": "Update to 5.19.0 or later.",
 "fix_released": "2026-11-11T01:28:32+00:00",
 "published": "2026-11-12T17:52:14+00:00",
 "updated": "2026-11-12T17:04:33.396278+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-2849/",
  "https://plugins.svn.wordpress.org/lightbox-photoswipe/tags/5.19.0/",
  "https://wordpress.org/plugins/lightbox-photoswipe/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/lightbox-photoswipe",
 "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-12"
 }
}