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, 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.

Generated by OpenCVE AI on August 3, 2026 at 10:10 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 August 3, 2026 at 10:10 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

Status : Received

Published: 2026-07-31T07:16:25.207

Modified: 2026-07-31T14:16:46.297

Link: CVE-2026-14833

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T10:15:03Z

Weaknesses
  • CWE-79

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