CVE-2026-14833

Lightbox with PhotoSwipe < 5.9.0 - Author+ Stored XSS via data-lbwps-caption Attribute

Published Jul 31, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
The Lightbox with PhotoSwipe WordPress plugin before 5.9.0 does not sanitise or escape a link data attribute before rendering it into the image lightbox caption in the browser, allowing users with author-level access and above (who lack the unfiltered_html capability) to store JavaScript that runs when a visitor or administrator opens the lightbox.

Analysis

AI-generated

Technical impact

The Lightbox with PhotoSwipe WordPress plugin before version 5.9.0 does not sanitize the data‑lbwps-caption attribute before rendering it into the image lightbox caption, allowing author‑level or higher users without the unfiltered_html capability to store malicious JavaScript. When a visitor or administrator opens a lightbox, the injected script is executed in the browser’s context, enabling arbitrary code execution on the site. The flaw can be used for cookie theft, session hijacking, content injection, or defacement by leveraging the victim’s privileges, according to CWE‑79.

Affected Systems

WordPress installations using the Lightbox with PhotoSwipe plugin with a version earlier than 5.9.0 are affected. The vulnerability applies to any site using that plugin, regardless of size, as long as an author‑level user or higher has access to the plugin’s configuration interface.

Risk and Exploitability

The CVSS score of 6.8 indicates a medium severity vulnerability, while the EPSS score of 0.00235 (less than 1%) shows a low probability of exploitation. Attackers only need author‑level access to the plugin’s admin interface to inject the payload; once a visitor opens the lightbox, the injected code runs with the site’s front‑end privileges. The vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed widespread exploitation yet, but the stored XSS nature and moderate severity warrant prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official plugin update to version 5.9.0 or later.
  • If an update is not yet available, temporarily remove or disable the Lightbox with PhotoSwipe plugin until a patch is released.
  • Implement a custom sanitization filter that escapes or removes JavaScript from the data‑lbwps-caption attribute before storage to prevent malicious code from being rendered.

Generated by OpenCVE AI on August 3, 2026 at 10:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wordpress-extensions
Wordpress-extensions lightbox With Photoswipe
Vendors & Products Wordpress-extensions
Wordpress-extensions lightbox With Photoswipe
Type Values Removed Values Added
Weaknesses CWE-79
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Lightbox with PhotoSwipe WordPress plugin before 5.9.0 does not sanitise or escape a link data attribute before rendering it into the image lightbox caption in the browser, allowing users with author-level access and above (who lack the unfiltered_html capability) to store JavaScript that runs when a visitor or administrator opens the lightbox.
Title Lightbox with PhotoSwipe < 5.9.0 - Author+ Stored XSS via data-lbwps-caption Attribute
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
WPScan
Published
Updated
Jul 31, 2026, 1:29 PM
Reserved
Jul 6, 2026, 9:51 AM
Status
Deferred
Published
Jul 31, 2026, 7:16 AM
Modified
Aug 26, 2026, 4:31 PM