CVE-2026-135654Lightbox with PhotoSwipe <= 5.18.0 - Unauthenticated Stored Cross-Site Scripting via Comment Link 'title' Attribute
- 7.2HighCVSS base score
- —Exploitation in 30 daysno EPSS score yet
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Wordfence
- 3 days later
· 3 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| WordfenceCNA (assigner) | 3.1 | High7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVDNVD · Deferred | 3.1 | High7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- Not scored
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.2.
Affected products
awelzel · Lightbox with PhotoSwipe
- affected ≤ 5.18.0
References
References7
- https://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848ba?source=cve (opens in a new tab)
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php#L700 (opens in a new tab)
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.js#L247 (opens in a new tab)
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L126 (opens in a new tab)
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L206 (opens in a new tab)
- https://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3b#diff-7ae795295766dd4e11418cfc268b53e6b42311e0 (opens in a new tab)
- https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-135654)Record last updated .