CVE-2026-125695: Lightbox with PhotoSwipe < 5.19.0 - Unauthenticated Stored XSS via Comment Link URL in Share Menu
The Lightbox with PhotoSwipe WordPress plugin before 5.19.0 does not escape image link URLs before outputting them in the attributes of the lightbox share menu, allowing unauthenticated users to perform Stored Cross-Site Scripting attacks via comments when the PhotoSwipe 4 frontend is used.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to this issue?
Sites using Lightbox with PhotoSwipe versions before 5.19.0 are affected when they use the PhotoSwipe 4 frontend. The vulnerable output is the share menu's image link URL attributes.
What does an attacker need to exploit it?
An attacker can exploit the issue without authentication by supplying a crafted link URL through a comment. Successful exploitation results in stored cross-site scripting.
Is every plugin configuration affected?
No. The issue is described as affecting deployments where the PhotoSwipe 4 frontend is used; the provided information does not establish impact for other frontends.