Skip to main content

Lightbox with PhotoSwipe CVE-2026-124649

| EUVDEUVD-2026-125866 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-14 WPScan GHSA-qjhw-rmf9-g548
7.5
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted comment with payload in caption source
  2. Delivery
    Payload stored unsanitised in plugin data
  3. Exploit
    Victim opens image in PhotoSwipe lightbox
  4. Execution
    Caption rendered as HTML, script executes
  5. Impact
    JavaScript runs in victim browser session

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

Exploitation requires that the target WordPress site runs Lightbox with PhotoSwipe before 5.19.0 AND accepts comments (the described unauthenticated injection vector) - on sites that disable comments, require registration/moderation before comments appear, or do not expose the affected caption sources (link titles and other caption inputs) in a PhotoSwipe lightbox, the unauthenticated path is blunted. Successful code execution further requires a victim to actually open the affected image in the lightbox so the malicious caption is rendered (UI:R). Limiting factors: payload executes only in the viewing victim's browser context (not the server), comment moderation or Akismet-style filtering can block the seed, and impact depends on whether a privileged user (e.g., an administrator previewing comments/images) is the one who triggers it.

Impact

The input CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H, base 7.5) sends mixed signals that deserve scrutiny. The stored XSS can be seeded by an unauthenticated user (PR:N) by posting a comment, which is consistent with WordPress default comment handling, but execution requires a victim to subsequently load the page and render the lightbox caption (UI:R). The provided C:H/I:H/A:H impact rating is unusually aggressive for a reflected/stored XSS in a lightbox caption - a typical stored XSS yields limited (Low) confidentiality/integrity impact scoped to the victim's browser session (S:C), so the high impact scoring should be treated as the reporter's worst-case interpretation rather than confirmed full host compromise. Real-world exploitation signals are modest: EPSS is 0.17% (7th percentile), there is no CISA KEV listing, and only a public PoC reference exists (WPScan) that is not verified as working exploit code. The vendor priority label is 'this_week', reflecting a patchable, moderately urgent issue rather than an emergency. Net assessment: a credible, genuinely unauthenticated-to-seed stored XSS worth patching promptly, but not a mass-exploitation or high-real-risk emergency; the headline 7.5 overstates per-event impact relative to the browser-scoped nature of XSS.

Exploit ScenarioDerived

An unauthenticated attacker submits a blog comment whose link title or other caption source carries an unsanitised HTML/JavaScript payload. When a site visitor or administrator later opens the associated image in the PhotoSwipe lightbox, the caption is rendered as HTML and the script executes in that victim's browser session. A public PoC reference exists (WPScan) but is not verified as working exploit code; the attack's high complexity and required victim interaction (UI:R) mean it is opportunistic rather than reliably automatable.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – Nov 16, 2026

Stored cross-site scripting in the WordPress plugin Lightbox with PhotoSwipe before 5.19.0 lets unauthenticated users inject HTML through comment-supplied link titles and other caption sources, which the plugin then renders unsanitised inside PhotoSwipe lightbox captions. Any site running an affected version that accepts comments and displays those caption sources in a lightbox is exposed; the payload fires when a victim actually opens the affected image (UI:R). A public PoC reference exists for this issue but it is not verified as working exploit code, EPSS is low at 0.17% (7th percentile), there is no CISA KEV listing, and the vendor has released a patch.

RemediationAI

Vendor-released patch: upgrade Lightbox with PhotoSwipe to 5.19.0 or later; this is the complete fix and the advisory at https://wpscan.com/vulnerability/c2c4ba65-7e51-4ec1-b7a9-8248071c86de/ should be consulted for the release details. Because the injection seed arrives through comments, interim risk reduction on sites that cannot update immediately centres on disabling or tightly moderating comments (requiring registration and manual approval before comments render) and on comment filtering such as Akismet-style spam checks, with the trade-off that this narrows the unauthenticated path but does not fix the underlying output encoding and leaves other attacker-influenced caption sources untouched. Restricting who can post comments and reviewing existing approved comments for injected markup are worthwhile compensating measures, but they should be treated as temporary given that a vendor fix is already available.

Affected VersionsENISA

Lightbox with PhotoSwipe 0 <5.19.0

Affected Packages

euvd lightbox_with_photoswipe fix: 5.19.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 affected component is a WordPress plugin that replaces the core lightbox with a PhotoSwipe-based gallery; the flaw is a CWE-79 improper neutralisation of user-controlled input before web page generation. The plugin pulls caption text from several sources - most notably image/link titles and related caption fields, including those derived from comment content - and inserts them into the lightbox caption as HTML without adequate sanitisation or escaping. Because the injection point is stored content rendered in the browser, the malicious markup persists on the site and executes in the context of whoever views the lightbox. The CPE string records the product with an unknown vendor and no version granularity, so version confirmation should come from the vendor advisory and the EUVD range of 0 to before 5.19.0. The independent assessment re-scores this as CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, treating the attack as network-reachable and unauthenticated for the injection but requiring victim interaction to trigger, with scope change and limited confidentiality/integrity impact - a materially different profile from the 7.5/high-integrity input vector, and the trigger conditions beyond the described comment-caption path are not described in the available sources.

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 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 6.1 MEDIUM

Crafting a malicious comment is straightforward (AC:L) and needs no auth on default comment forms (PR:N); a victim must view the lightbox (UI:R); script runs cross-context in the browser (S:C) with limited C/I impact and no availability effect.

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

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

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

Lifecycle Timeline

4
CVSS changed
Nov 16, 2026 - 12:22 NVD
7.5 (HIGH)
Patch available
Nov 14, 2026 - 07:02 EUVD
CVE Published
Nov 14, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Nov 14, 2026 - 06:00 cve.org
HIGH 7.5

DescriptionCVE.org

The Lightbox with PhotoSwipe WordPress plugin before 5.19.0 does not properly sanitise link titles and other caption sources before inserting them as HTML into the image lightbox caption, allowing unauthenticated users to perform Stored Cross-Site Scripting attacks via comments.

Technical POC Analysis

Evidence caveat: the only supplied source is the WPScan/WPVDB advisory entry.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity stored cross-site scripting vulnerability affects the Lightbox with PhotoSwipe plugin for WordPress, enabling unauthenticated attackers to inject malicious scripts through comment fields and other caption sources. When a victim opens an affected image, the script executes in their browser, potentially compromising administrator sessions and leading to full site takeover. Any organization running WordPress with this plugin and allowing comments is at risk, and leadership should prioritize remediation to protect site integrity and user trust.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
common WordPress image-lightbox plugin, sizeable but not universal install base
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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