Read the docs

Stored cross-site scripting in Lightbox with PhotoSwipe plugin

Priority LOW 32CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
No fix listed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

The Lightbox with PhotoSwipe plugin for WordPress by awelzel, from 0 through 5.18.0, does not sanitize input or escape output of the comment parameter. This stored cross-site scripting flaw (CWE-79) lets an unauthenticated attacker inject web scripts that run in a visitor's browser when they open the lightbox on the affected post. Exploitation requires an administrator to approve the attacker's comment once, which WordPress does by default for first-time commenters. After that approval, the script runs for any visitor who opens the lightbox.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

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.

Why it matters now

EPSS 0.0054 38th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
awelzelLightbox with PhotoSwipeup to 5.18.0—No fix listedCNA
  • Lightbox with PhotoSwipe Vendorawelzel Affected up to 5.18.0 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for Lightbox with PhotoSwipe.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-135654
  2. 2026-11-27 Alias added: GHSA-hhr7-4cxj-x3vg

References

Sources