CVE-2026-14833 Lightbox with PhotoSwipe < 5.9.0 - Author+ Stored XSS via data-lbwps-caption Attribute
Authors can inject malicious JavaScript via image captions, leading to code execution when visitors or admins view the lightbox.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-14833?
CVE-2026-14833 is a medium-severity cross-site scripting vulnerability in Unknown Lightbox with PhotoSwipe, published on 31 Jul 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
The Lightbox with PhotoSwipe WordPress plugin before 5.9.0 does not sanitise or escape a link data attribute before rendering it into the image lightbox caption in the browser, allowing users with author-level access and above (who lack the unfiltered_html capability) to store JavaScript that runs when a visitor or administrator opens the lightbox.
Weakness: CWE-79
Which versions are affected by CVE-2026-14833?
How do I fix CVE-2026-14833?
No fix has been published for CVE-2026-14833 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-14833 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-14833 exists.
Sources
Also known as GHSA-r6rj-q66h-w8m7.