CVE-2026-135654 Lightbox with PhotoSwipe <= 5.18.0 - Unauthenticated Stored Cross-Site Scripting via Comment Link 'title' Attribute

Published Updated

Unauthenticated attackers can store scripts via comment links that run for visitors once an admin approves the comment; WordPress sites using Lightbox with PhotoSwipe should care.

CVSS score

High

7.2/10

CVSS 3.1 · Scored by Wordfence Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Over the internet
No login, no user action

What is CVE-2026-135654?

CVE-2026-135654 is a high-severity cross-site scripting vulnerability in awelzel Lightbox with PhotoSwipe, published on 26 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-79

How severe is CVE-2026-135654?

CVE-2026-135654 scores 7.2 out of 10 under CVSS 3.1, which is high severity. It was scored by Wordfence.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Which versions are affected by CVE-2026-135654?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-135654?

No fix has been published for CVE-2026-135654 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-135654 being exploited?

There is no known exploitation of CVE-2026-135654 in the wild and no public exploit code.

Sources

Also known as GHSA-hhr7-4cxj-x3vg.

Is CVE-2026-135654 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free