The Lightbox with PhotoSwipe WordPress plugin is affected by a stored cross-site scripting (XSS) vulnerability in the 'comment' parameter in all versions up to and including 5.18.0. This vulnerability allows unauthenticated attackers to inject malicious scripts that execute when users view the affected pages. Exploitation requires an administrator to approve the attacker's comment once, after which the payload triggers for any visitor opening the lightbox on the compromised post.