Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted comment with XSS payload
-
DeliveryAdmin approves first-time comment
-
ExploitPayload stored in post content
-
ExecutionVisitor opens lightbox on post
-
ImpactScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (Wordfence).
CVSS VectorNVD
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
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.
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
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 XSS in the Lightbox with PhotoSwipe WordPress plugin before 5.9.0 allows author-level users (lacking unfiltered_h
EUVD-2026-136515
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB