CVE-2026-135654: Lightbox with PhotoSwipe <= 5.18.0 - Unauthenticated Stored Cross-Site Scripting via Comment Link 'title' Attribute

Published Nov 26, 2026
·
Updated

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 Software

1 affected component
dFactory Lightbox with PhotoSwipe<=5.18.0

Event History

Nov 26, 2026
CVE Published
via MITRE·02:36 PM
Data Sourced
via MITRE·02:36 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which installations are affected?

dFactory Lightbox with PhotoSwipe for WordPress is affected in all versions up to and including 5.18.0.

2

Does an attacker need a WordPress account or other authentication?

No. An unauthenticated attacker can submit the malicious comment parameter, but the comment must be approved by an administrator at least once before exploitation succeeds.

3

Are sites using the default comment-approval behavior exposed?

Yes. Under the default WordPress behavior, a first-time commenter's comment requires administrator approval. Once that commenter has had a comment approved, subsequent malicious comments do not require further administrative action.

4

When does the injected script run?

The payload executes for any visitor who opens the lightbox on the affected post containing the injected content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203