Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b3
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/asset
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/asset
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/asset
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/L
- https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/a
- https://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af8
FAQ
What is CVE-2026-135654?
CVE-2026-135654 is a vulnerability with a CVSS score of 7.2 (HIGH). 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 saniti...
How severe is CVE-2026-135654?
CVE-2026-135654 has been rated HIGH with a CVSS base score of 7.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-135654?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.