---
title: "CVE-2026-135654: WordPress Lightbox with PhotoSwipe - Stored XSS"
description: "Lightbox with PhotoSwipe plugin for WordPress <= 5.18.0 contains a stored cross-site scripting caused by insufficient input sanitization and output escaping in the 'comment' parameter, letting unauthenticated attackers inject scripts that execute for any visitor after admin approval."
url: https://panop.io/threat-heartbeat/CVE-2026-135654/
---

# CVE-2026-135654 WordPress Lightbox with PhotoSwipe - Stored XSS

Lightbox with PhotoSwipe plugin for WordPress <= 5.18.0 contains a stored cross-site scripting caused by insufficient input sanitization and output escaping in the 'comment' parameter, letting unauthenticated attackers inject scripts that execute for any visitor after admin approval.

CVSS base score 7.2 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-135654)

## Details

Type

Stored XSS

Impact

Stored XSS

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Published

26 November 2026

Updated

27 November 2026

Weakness

[CWE-79](https://cwe.mitre.org/data/definitions/79.html)

## Vendor fix

Update to a version later than 5.18.0 or the latest available version.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-135654](https://nvd.nist.gov/vuln/detail/CVE-2026-135654)
- [https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L206](https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L206)
- [https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php#L700](https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php#L700)
- [https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js](https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js)
- [https://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848ba?source=cve](https://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848ba?source=cve)
- [https://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3b#diff-7ae795295766dd4e11418cfc268b53e6b42311e0](https://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3b#diff-7ae795295766dd4e11418cfc268b53e6b42311e0)
- [https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.js#L247](https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.js#L247)
- [https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L126](https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L126)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
