Skip to main content

Lightbox with PhotoSwipe CVE-2026-14833

| EUVDEUVD-2026-51412 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-31 WPScan GHSA-r6rj-q66h-w8m7
6.8
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain WordPress author-level credentials
  2. Delivery
    Craft post with malicious JavaScript in image link data attribute
  3. Exploit
    Publish post to target site
  4. Execution
    Lure victim (admin) to open lightbox
  5. Persist
    Stored XSS payload executes in victim's browser
  6. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Lightbox with PhotoSwipe 0 <5.9.0

Affected Packages

euvd lightbox_with_photoswipe fix: 5.9.0

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

Vendor (WPScan) PRIMARY 6.8 MEDIUM
AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 31, 2026 - 14:22 NVD
6.8 (MEDIUM)
Patch available
Jul 31, 2026 - 07:01 EUVD
CVE Published
Jul 31, 2026 - 06:00 cve.org
MEDIUM 6.8
CVE Published
Jul 31, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)

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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
WordPress plugin with moderate but non-dominant install base
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy