CVE-2026-135654
published high CVSS 3.1 · 7.2Lightbox with PhotoSwipe <= 5.18.0 - Unauthenticated Stored Cross-Site Scripting via Comment Link 'title' Attribute
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| awelzel | — | Lightbox with PhotoSwipe0 through 5.18.0 · Other versions: unaffected | Affected | Not stated | Wordfence |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.2 / 10
- Severity
- high
- Provider
- Wordfence · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| awelzel | Lightbox with PhotoSwipe | 0 through 5.18.0 (affected · semver)Default: unaffected | Wordfence · cna |
Weaknesses
1- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation
References
7- https://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3b#diff-7ae795295766dd4e11418cfc268b53e6b42311e0
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.js#L247
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L126
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L206
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php#L700
- https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js
- https://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848ba?source=cve
Provider assertions
2Wordfence · cna
Lightbox with PhotoSwipe <= 5.18.0 - Unauthenticated Stored Cross-Site Scripting via Comment Link 'title' Attribute
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f86eba1c59851dcb4f0155a4aa73952ffa63a666a7d21d0c7e1d74f57effb135
- Ingested
- 01 Dec 2026, 19:45:57 UTC
- Source record
- Official CVE record