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.
Published: 2026-07-31
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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. This oversight allows users with author or higher roles, who do not have the unfiltered_html capability, to store malicious JavaScript that is executed in the browser when a visitor or administrator opens a lightbox. The flaw enables arbitrary script execution in the context of the site, potentially leading to cookie theft, session hijacking, content injection, or defacement. The underlying weakness aligns with improper neutralization of input during web page generation.

Affected Systems

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

Risk and Exploitability

While the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, the flaw presents a high‑impact stored XSS risk. Attackers can exploit the vulnerability by creating or editing a link caption through the plugin’s normal admin interface, a capability that requires only author‑level access. Once an end‑user or site administrator opens the lightbox, the injected JavaScript runs, giving the attacker the same privileges as the site’s frontend environment. In the absence of a CVSS score, the potential for widespread impact remains significant, especially on sites with public visitors.

Generated by OpenCVE AI on July 31, 2026 at 18:52 UTC.

Remediation

No vendor fix or workaround currently provided.

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 July 31, 2026 at 18:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 31 Jul 2026 14:30:00 +0000

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'}


Fri, 31 Jul 2026 06:30:00 +0000

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

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: WPScan

Published:

Updated: 2026-07-31T13:29:02.531Z

Reserved: 2026-07-06T09:51:49.570Z

Link: CVE-2026-14833

cve-icon Vulnrichment

Updated: 2026-07-31T13:28:53.939Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T19:00:10Z

Weaknesses
  • CWE-79

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