PatchSiren cyber security CVE debrief
CVE-2026-135654 awelzel CVE debrief
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.
- Vendor
- awelzel
- Product
- Lightbox with PhotoSwipe
- CVSS
- HIGH 7.2
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-26
- Original CVE updated
- 2026-11-26
- Advisory published
- 2026-11-26
- Advisory updated
- 2026-11-26
Who should care
WordPress administrators, security teams, and users of the Lightbox with PhotoSwipe plugin should be aware of this vulnerability and take necessary actions to mitigate it, especially those with open commenting enabled or high-risk configurations. They should prioritize patching or mitigating this vulnerability.
Why it matters
CVE-2026-135654 is a Stored Cross-Site Scripting vulnerability in the Lightbox with PhotoSwipe plugin for WordPress. Defenders should prioritize patching, restrict commenting, and monitor for suspicious activity.
- Unauthenticated attackers can inject malicious scripts, potentially leading to user exploitation.
- Successful exploitation requires an administrator to approve the attacker's comment at least once.
- After initial approval, no further administrative action is needed for the payload to execute.
- Defenders should verify the patch status of Lightbox with PhotoSwipe and monitor for suspicious activity.
Technical 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. This is due to insufficient input sanitization and output escaping, allowing unauthenticated attackers to inject arbitrary web scripts. 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.
Defensive priority
Defenders should prioritize patching or mitigating this vulnerability, especially for WordPress installations with open commenting enabled.
Recommended defensive actions
- Patch or upgrade Lightbox with PhotoSwipe to a version beyond 5.18.0.
- Restrict commenting on sensitive pages or posts.
- Monitor for suspicious comments or activity.
- Implement additional security measures, such as Web Application Firewalls (WAFs) or Intrusion Detection Systems (IDS).
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The CVE record and source item provide details on the vulnerability, including affected versions and potential exploitation vectors. Lightbox with PhotoSwipe plugin versions up to 5.18.0 are vulnerable. Successful exploitation requires administrator approval of an attacker's comment. After approval, no further action is needed for the payload to execute. Defenders should verify patch status and monitor for suspicious activity, with evidence grounded in CVE and source item details.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-135654 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-135654
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-135654 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-135654
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Lightbox with PhotoSwipe <= 5.18.0 - Unauthenticated Stored Cross-Site Scripting via Comment Lin
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/135xxx/CVE-2026-135654.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.js
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3b
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.