Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker obtains Author-role WordPress account
-
DeliveryCreates post embedding malicious link title attribute
-
ExploitPost published on target site
-
InstallVictim administrator visits post and clicks link
-
C2PhotoSwipe injects unescaped title into DOM
-
ExecuteJavaScript payload executes in admin browser context
-
ImpactAdmin session cookie exfiltrated to attacker
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 all of the following: (1) an attacker-controlled WordPress account holding at minimum the Author role - Contributor-level accounts cannot publish directly and require an editor to approve and publish their drafts, which breaks the unmediated attack path; (2) the PhotoSwipe plugin installed and active on the target site; (3) a victim who navigates to the post containing the malicious link and physically clicks it, triggering lightbox rendering. Exploitation is bounded by the Author-role requirement, ruling out unauthenticated remote exploitation, and by the mandatory victim click (UI:R), ruling out drive-by page-load attacks. Sites where every Author-role account is held by a fully trusted administrator face negligible incremental risk from this vulnerability. |
| Impact | The NVD CVSS base score of 6.8 (AV:N/AC:L/PR:H/UI:R/S:U) correctly captures the Author-role prerequisite (PR:H) and required victim click (UI:R), but the S:U scope assignment likely understates real-world impact: when the payload fires inside an administrator's browser, it inherits admin-level capabilities, enabling full site compromise - a scenario more consistent with S:C. A publicly available proof-of-concept, reported by WPScan and catalogued under EUVD-2026-50116, substantially lowers the skill bar. EPSS data was not provided in the available intelligence. KEV status is negative, indicating no confirmed broad exploitation at time of analysis. Real-world priority is moderate-to-high for any WordPress deployment with untrusted or semi-trusted Author-role accounts (multi-author blogs, content agencies, publishing platforms), and low for single-author or admin-only sites where all users are fully trusted. |
| Exploit ScenarioDerived | An attacker holding a legitimate Author-level account on a target WordPress site crafts a post containing an anchor element whose title attribute embeds a JavaScript session-stealing payload. When a site administrator browses the published post and clicks the link, PhotoSwipe renders the unescaped title string into the DOM, executing the script in the admin's browser context and transmitting the admin's session cookie to an attacker-controlled server. A publicly available proof-of-concept demonstrates this technique, lowering the required attacker skill to near-trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 29, 2026
Stored cross-site scripting in the PhotoSwipe WordPress plugin (all versions through 4.1.1.1) allows an authenticated Author-level user to plant a persistent JavaScript payload inside a link's title attribute, which the plugin writes unescaped into the page DOM as a lightbox caption. Any visitor - including site administrators - who clicks the link triggers payload execution in their browser, enabling session hijacking and full WordPress takeover. A publicly available proof-of-concept exists; no patched release has been identified at time of analysis.
RemediationAI
No vendor-released patch has been identified for PhotoSwipe ≤4.1.1.1 at time of analysis. The primary recommended action is to deactivate and remove the plugin immediately, eliminating the attack surface entirely at the cost of losing lightbox gallery functionality. As a compensating control for sites that cannot remove the plugin, restrict the Author role exclusively to fully trusted individuals - reducing the Author-role user count to zero closes the exploitation path since Contributors cannot publish posts independently without editor approval. WordPress site administrators should audit current Author-role assignments and demote any accounts held by untrusted parties to Contributor or lower. Monitor the WPScan advisory (https://wpscan.com/vulnerability/7ec73098-99eb-48cb-8ff6-a05110691117/) and the plugin's official WordPress repository page for a patched release.
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
PhotoSwipe is a JavaScript lightbox gallery library packaged as a WordPress plugin (CPE: cpe:2.3:a:unknown:photoswipe:*:*:*:*:*:*:*:*). The plugin extracts the HTML title attribute from author-supplied anchor elements and injects it directly into the live DOM as a caption string when the lightbox opens. WordPress's built-in post-content sanitization strips script tags and event handlers for users lacking the unfiltered_html capability, but it does not strip or encode content inside title attributes, creating a sanitization bypass vector. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the plugin performs no secondary HTML-encoding of the title value before DOM insertion, allowing embedded JavaScript to execute in the visitor's browser context.
Know when 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
S:C assigned because the payload executes under admin browser context, crossing security principals; A:N because XSS does not directly affect availability.
Primary rating from Vendor (WPScan).
CVSS VectorVendor: WPScan
Lifecycle Timeline
3DescriptionCVE.org
The PhotoSwipe WordPress plugin through 4.1.1.1 uses the title attribute of author-supplied link markup as a lightbox caption that is written into the page DOM without escaping. Because the title attribute survives the post-content sanitization applied to users who lack the unfiltered_html capability, an authenticated user with Author-level access can store a JavaScript payload that executes in the browser of any visitor, including an administrator, who clicks the link.
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.
EUVD-2026-50116
GHSA-frxw-gm92-m8v8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB