Skip to main content

PhotoSwipe Plugin EUVDEUVD-2026-50116

| CVE-2026-13605 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-29 WPScan GHSA-frxw-gm92-m8v8
6.8
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

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

  1. Recon
    Attacker obtains Author-role WordPress account
  2. Delivery
    Creates post embedding malicious link title attribute
  3. Exploit
    Post published on target site
  4. Install
    Victim administrator visits post and clicks link
  5. C2
    PhotoSwipe injects unescaped title into DOM
  6. Execute
    JavaScript payload executes in admin browser context
  7. Impact
    Admin 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

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

PhotoSwipe 0 ≤4.1.1.1

Affected Packages

euvd 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

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

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 8.1 HIGH

S:C assigned because the payload executes under admin browser context, crossing security principals; A:N because XSS does not directly affect availability.

3.1 AV:N/AC:L/PR:H/UI:R/S:C/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:L/SI:L/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

3
CVSS changed
Jul 29, 2026 - 13:22 NVD
6.8 (MEDIUM)
CVE Published
Jul 29, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 29, 2026 - 06:00 cve.org
MEDIUM 6.8

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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular WordPress lightbox gallery plugin, not universally deployed
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 No
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
Total

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