Elevated
Lightbox with PhotoSwipe stored XSS via comments
CVE-2026-135654
Visitors to a WordPress photo-viewer plugin can have scripts planted through comments.
- CVE
- CVE-2026-135654 (opens in a new tab)
- Score
- CVSS 7.2
- First seen
7.2
Products
Mitigation
Check that you run a version newer than 5.18.0, and read the vendor's advisory.
Summary
Comment input is not properly sanitized, so an unauthenticated attacker can plant malicious scripts. All versions up to and including 5.18.0 are affected, and the script runs when a visitor opens the lightbox on the affected post.
Affected when
An administrator must approve the attacker's comment at least once (WordPress default for first-time commenters)
Incidents by product: Lightbox with PhotoSwipe
Other recent Incidents of Lightbox with PhotoSwipe
Read the CVE record · cve.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)