High severity7.2NVD Advisory· Published Nov 26, 2026· Updated Nov 26, 2026
CVE-2026-135654
CVE-2026-135654
Description
The Lightbox with PhotoSwipe plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 5.18.0 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Successful exploitation requires an administrator to approve the attacker's comment at least once, which is the default WordPress behavior for first-time commenters; after that initial approval, no further administrative action is needed and the payload fires for any visitor who opens the lightbox on the affected post.
Affected products
1- Range: <=5.18.0
Patches
Vulnerability mechanics
References
7- codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3bnvd
- plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.jsnvd
- plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.jsnvd
- plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.jsnvd
- plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.phpnvd
- plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.jsnvd
- www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848banvd
News mentions
0No linked articles in our index yet.