Skip to main content

Lightbox with PhotoSwipe CVE-2026-135654

| EUVDEUVD-2026-136515 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 Wordfence
7.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted comment with XSS payload
  2. Delivery
    Admin approves first-time comment
  3. Exploit
    Payload stored in post content
  4. Execution
    Visitor opens lightbox on post
  5. Impact
    Script executes in visitor browser

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 target site must run the Lightbox with PhotoSwipe plugin (version ≤5.18.0) with commenting enabled on posts that contain lightbox-enabled images. The attacker injects the payload through the 'comment' parameter (stored XSS via insufficient sanitization/output escaping in the dynamic-caption/frontend rendering). The key limiting factor is that an administrator must approve the attacker's comment at least once - the default WordPress workflow for a first-time commenter; after that single approval no further admin action is needed and the payload fires for any visitor who opens the lightbox on the affected post. Although PR:N indicates no attacker authentication, this required one-time moderator approval is a real-world gate that constrains opportunistic mass exploitation.

Impact

This is a genuine but moderate-priority issue rather than an emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N, 7.2) signals network-reachable, low-complexity, unauthenticated stored XSS with a scope change (script executes in the visitor's browser context, outside the vulnerable component). Those raw metrics look alarming, but the description adds a decisive limiting factor the vector does not capture: successful exploitation requires an administrator to approve the attacker's comment at least once. The CVSS vector states UI:N, yet the description requires a one-time administrator moderation action - these conflict, and the real-world gating (default WordPress first-time-commenter moderation) meaningfully reduces mass-exploitation potential; verify intended scoring with the vendor/Wordfence. No EPSS score was provided, the CVE is not listed in CISA KEV, and no confirmed public exploit code was supplied - only vendor advisory, source-code locations, and the patch commit/changeset are referenced. Impact is limited to C:L/I:L (no availability impact), consistent with client-side script injection rather than server compromise. The vuln.today decision label is 'this_week', aligning with a patch-promptly-but-not-emergency posture. Net: a real vulnerability worth patching this week, with real-world risk tempered by the required one-time admin approval and the absence of KEV/EPSS/POC signals.

Exploit ScenarioDerived

An unauthenticated attacker posts a comment containing a malicious script payload via the 'comment' parameter on a post that uses the Lightbox with PhotoSwipe plugin. Following default WordPress behavior, an administrator approves this first-time commenter once; thereafter the payload is stored and rendered through the lightbox dynamic caption, firing in the browser of any visitor who opens the lightbox on that post. No public exploit code was identified in the supplied data, though the patch commit and vulnerable source lines are referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Stored cross-site scripting in the Lightbox with PhotoSwipe WordPress plugin (all versions up to and including 5.18.0) lets unauthenticated attackers inject arbitrary scripts through the 'comment' parameter; the payload executes for any visitor who opens the lightbox on the affected post. Exploitation is gated by WordPress's default first-time comment moderation: an administrator must approve the attacker's comment once, after which no further admin action is needed. No public exploit code has been identified at time of analysis, and the one-time approval requirement constrains opportunistic mass exploitation; this is a moderate-priority issue rather than an emergency.

RemediationAI

Apply the upstream fix: the supplied data points to Codeberg commit fc2711dc1249f406e9b06b38d2c6d398f7a65b3b and WordPress.org Trac changeset 3795514 (https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js); a tagged patched release version is not independently confirmed, so confirm with the plugin vendor/advisory before relying on a specific version. Until a fixed release is deployed, note that exploitation requires an administrator to approve the attacker's first-time comment - restricting comment approval to trusted moderators and requiring moderation for all comments reduces exposure but does not repair the underlying output-escaping flaw. The Wordfence advisory is at https://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848ba?source=cve.

Affected VersionsENISA

Lightbox with PhotoSwipe 0 ≤5.18.0

Affected Packages

euvd lightbox_with_photoswipe no fix

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 flaw is CWE-79 (stored cross-site scripting) in the awelzel/lightbox_with_photoswipe WordPress plugin (CPE: cpe:2.3:a:awelzel:lightbox_with_photoswipe). PhotoSwipe is a JavaScript image-lightbox library; this plugin integrates it with WordPress and renders comment text into lightbox captions via its dynamic-caption component. The supplied references point to insufficient sanitization in LightboxPhotoSwipe.php (around line 700) and unsafe output handling in assets/ps5/frontend.js (lines 126 and 206) and the dynamic-caption plugin (line 247), where comment content reaches the DOM without adequate escaping. An attacker submits a comment containing script markup; once an administrator approves that first-time comment, the stored payload is served to visitors who open the lightbox on the post. The upstream repository contains a fix commit (fc2711dc1249f406e9b06b38d2c6d398f7a65b3b) and Trac changeset 3795514; a tagged release version incorporating the fix is not confirmed in the supplied data.

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 (Wordfence) PRIMARY HIGH
NVD 7.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 7.2 HIGH

Unauthenticated comment submission (PR:N), low complexity, scope change because the script runs in the visitor's browser; the one-time admin approval is a mitigating factor not well captured by base metrics.

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

Primary rating from Vendor (Wordfence).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionNVD

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.

Executive ViewAI

Why It Matters

The Lightbox with PhotoSwipe WordPress plugin (versions up to 5.18.0) contains a stored cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts into comments. These scripts execute when visitors open the lightbox on an affected post, potentially compromising user sessions or data. Leadership should care because this affects site visitors and could damage trust or lead to broader compromise, though the need for one-time administrator approval of the comment reduces the risk of widespread exploitation.

Business Impact: Medium
Compensating Controls

Disable the Lightbox with PhotoSwipe plugin until a patch is available; enforce strict comment moderation requiring administrator approval for all comments; consider a web application firewall (WAF) with virtual patching capabilities to block XSS attempts.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
popular WordPress image-lightbox plugin, moderate but not universal install base
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

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 No
EPSS 0.5%
Patch available No
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
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