Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain WordPress author-level credentials
-
DeliveryCraft post with malicious JavaScript in image link data attribute
-
ExploitPublish post to target site
-
ExecutionLure victim (admin) to open lightbox
-
PersistStored XSS payload executes in victim's browser
-
ImpactExfiltrate session cookie or perform admin actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold a WordPress author role (or higher) on the target site AND must lack the unfiltered_html capability - this combination is the standard author-level permission set in WordPress and applies by default on multi-author sites. The attack additionally requires a victim (any site visitor or administrator) to actively open the lightbox by clicking on an image in an attacker-controlled post or page; the XSS does not fire on page load or without this interaction. There is no requirement for a non-default plugin configuration beyond the plugin simply being installed and active. Exploitation is limited by: (1) the need for a pre-existing authenticated author account on the target site, (2) mandatory victim interaction with the lightbox, and (3) the attacker's payload being visible only on pages or posts they have permission to publish. |
| Impact | The CVSS 3.1 score of 6.8 (AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H) correctly reflects the two principal mitigating factors: PR:H (the attacker must hold a WordPress author role) and UI:R (a victim must actively open the lightbox). These conditions substantially limit opportunistic exploitation and make this a medium-priority finding rather than a critical emergency. The high C/I impact ratings are grounded in the stored-XSS-to-admin-session-hijack attack path. A:H in the provided vector is less defensible for a pure XSS flaw and is likely conservative. No EPSS data was provided, and the vulnerability is absent from the CISA KEV catalog, indicating no confirmed widespread active exploitation at time of analysis. The publicly available WPScan exploit lowers the skill barrier for any threat actor who already has author credentials. Sites running multi-author WordPress installations where contributor trust is limited are the realistic high-risk population. |
| Exploit ScenarioDerived | A threat actor with a WordPress author account on the target site edits or creates a post containing an image, setting the image link's data attribute to a JavaScript payload such as a cookie-stealing script. The post is published and visible to site visitors. When a site administrator reviews content and opens the lightbox by clicking the image, the stored JavaScript executes in the administrator's browser session, exfiltrating their session cookie to an attacker-controlled server and enabling full site takeover. A publicly available WPScan exploit documents this exact technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Stored XSS in the Lightbox with PhotoSwipe WordPress plugin before 5.9.0 allows author-level users (lacking unfiltered_html) to inject arbitrary JavaScript into image lightbox captions via an unsanitized link data attribute. The payload executes in the browser of any visitor or administrator who opens the affected lightbox, enabling session hijacking or privilege escalation against site administrators. A publicly available exploit documents the technique; no active exploitation is confirmed via CISA KEV, though the author-level entry bar is low on sites with multiple contributors.
RemediationAI
Update the Lightbox with PhotoSwipe plugin to version 5.9.0 or later, which introduces proper sanitization and escaping of the link data attribute before it is rendered into the lightbox caption. The fix is confirmed available from the vendor per the WPScan advisory (https://wpscan.com/vulnerability/aae59cb8-b259-464e-a86b-164d89f61342/). If immediate patching is not possible, a targeted compensating control is to restrict the WordPress author role so that no untrusted user holds it - this eliminates the attacker's required entry point. Alternatively, temporarily deactivating the plugin removes the vulnerable rendering path entirely, trading lightbox functionality for security. Do not rely on input filtering at the post-editor level alone, as the vulnerability bypasses WordPress's standard unfiltered_html gate at the plugin rendering layer.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The plugin integrates the PhotoSwipe JavaScript lightbox library into WordPress to display images in an overlay viewer. It fails to sanitize or HTML-encode a link's data attribute before injecting it into the lightbox caption rendered in the DOM, a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) defect. WordPress's permission model normally prevents author-level users from saving raw HTML/JavaScript via the unfiltered_html capability, but this bypass occurs at the plugin rendering layer, outside WordPress's standard sanitization pipeline. The CPE string (cpe:2.3:a:unknown:lightbox_with_photoswipe:*:*:*:*:*:*:*:*) covers all versions of the plugin prior to 5.9.0.
Know when Lightbox With Photoswipe gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
PR:H reflects required author role; UI:R reflects mandatory lightbox interaction; C:H and I:H cover session hijack and account takeover; A:N as XSS carries no direct availability impact.
Primary rating from Vendor (WPScan).
CVSS VectorVendor: WPScan
Lifecycle Timeline
4DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Lightbox With Photoswipe
View allStored cross-site scripting in the WordPress plugin Lightbox with PhotoSwipe before 5.19.0 lets unauthenticated users in
Stored cross-site scripting in the Lightbox with PhotoSwipe WordPress plugin (all versions up to and including 5.18.0) l
EUVD-2026-51412
GHSA-r6rj-q66h-w8m7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB