CVE-2026-135654
NVDCVSS scored by security@wordfence.com
Vulnerability Summary
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 v3.1 Base Metrics — Score 7.2 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone
Affected & Patched Versions
- awelzel Lightbox with PhotoSwipe <= 5.18.0
- awelzel Lightbox with PhotoSwipe 5.18.0
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run awelzel Lightbox with PhotoSwipe and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 26, 2026Published
- Nov 26, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new awelzel Lightbox with PhotoSwipe CVEsYou are reading CVE-2026-135654. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3b#diff-7ae795295766dd4e11418cfc268b53e6b42311e0
- Referencehttps://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.js#L247
- Referencehttps://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L126
- Referencehttps://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L206
- Referencehttps://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php#L700
- Referencehttps://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js
- Referencehttps://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848ba?source=cve
Data last checked: Nov 26, 2026 17:01 UTC