Skip to main content

Document Gallery CVE-2026-57695

| EUVDEUVD-2026-43356 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-07-13 Patchstack
7.1
CVSS 3.1 · Vendor: Patchstack
View

Attack ChainAIDerived

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

  1. Access
    Craft URL with XSS payload for Document Gallery param
  2. Delivery
    Deliver link via phishing or social post
  3. Exploit
    Victim with WordPress session opens link
  4. Execution
    Reflected script executes in site context
  5. Impact
    Steal session/cookies or act as victim

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 a victim with an active session on the target WordPress site clicks or loads an attacker-crafted link targeting the Document Gallery plugin's reflected parameter (UI:R in the CVSS vector), so it is not fully automatable and cannot be triggered server-side without a lured user. No authentication is required of the attacker (PR:N), the target must simply be running Document Gallery at version 5.1.0 or earlier with the plugin active, and the request is network-reachable (AV:N/AC:L). The chief limiting factors are the mandatory user interaction, the non-persistent reflected nature (payload is not stored, so each target must be individually delivered the link), and the requirement that the vulnerable plugin be installed and enabled.

Impact

The CVSS 3.1 base score is 7.1 (High) with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L: network-reachable, low complexity, no privileges, but requiring user interaction (the victim must open a crafted link), with limited confidentiality, integrity and availability impact amplified by a scope change. No EPSS score was provided in the input, and there is no KEV listing and no POC reference, so real-world exploitation pressure appears low and opportunistic rather than mass-automated. The dependence on victim interaction (UI:R) and the reflected (non-persistent) nature meaningfully limit blast radius compared to stored XSS: each victim must be individually lured. This is a legitimate patch-worthy issue for affected sites, but absent EPSS/KEV/POC signals it is not an emergency-tier, wormable vulnerability. No conflicting signals were detected in the provided data; the main gap is the absence of EPSS and an explicitly named fixed version.

Exploit ScenarioDerived

An attacker crafts a URL pointing at the vulnerable WordPress site with a malicious script payload embedded in a parameter handled by Document Gallery, then delivers it via phishing email, forum post, or social media. When a logged-in administrator or visitor clicks the link, their browser reflects and executes the script in the site's context, allowing session/cookie theft or actions on the victim's behalf. No public POC is referenced, but reflected XSS of this class is straightforward to weaponize given low attack complexity.

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

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

Alert me

AnalysisAIv1 – Jul 13, 2026

Reflected cross-site scripting in the Dan Rossiter Document Gallery WordPress plugin (all versions up to and including 5.1.0) lets an unauthenticated attacker inject script into a reflected response that executes in a victim's browser when they follow a crafted link. Because the CVSS scope is changed, the injected script can affect resources beyond the vulnerable component (e.g., the surrounding WordPress session context). This flaw was reported by Patchstack; no public exploit code has been identified and it is not listed in CISA KEV at time of analysis.

RemediationAI

No vendor-released patched version is named in the available data, so treat the primary action as upgrading to any release later than 5.1.0 once the maintainer publishes a fixed build, and monitor the Patchstack advisory (https://patchstack.com/database/Wordpress/Plugin/document-gallery/vulnerability/wordpress-document-gallery-plugin-5-1-0-cross-site-scripting-xss-vulnerability) and the plugin's WordPress.org listing for that release. Until a fixed version is confirmed, apply a Web Application Firewall or Patchstack virtual patch to filter script-injection payloads in requests to the plugin's endpoints, which adds request-inspection overhead and can be bypassed by novel encodings; alternatively deactivate and remove the Document Gallery plugin, which fully removes exposure at the cost of losing its document-listing functionality on the site. Restricting or sanitizing the reflected request parameters at the reverse proxy and setting a restrictive Content-Security-Policy that disallows inline script can further reduce the chance of injected script executing, though CSP may break legitimate inline scripts on the theme.

Affected VersionsENISA

Document Gallery 0 ≤5.1.0

Affected Packages

euvd document_gallery 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 affected component is Document Gallery, a WordPress plugin (CPE cpe:2.3:a:dan_rossiter:document_gallery) used to display collections of documents/attachments in posts and pages. The root cause is CWE-79, Improper Neutralization of Input During Web Page Generation, in the reflected variant: user-controllable input (typically a request/query parameter) is echoed back into an HTML response without proper output encoding or input sanitization, so an attacker-supplied value is parsed as active markup/script. The scope-changed CVSS vector (S:C) indicates the executed script operates in the trust context of the WordPress site rather than being confined to an isolated component.

Know when Document Gallery 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 (Patchstack) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
vuln.today AI 7.1 HIGH

Network-reachable reflected XSS needs no attacker auth (PR:N) but requires victim to open a crafted link (UI:R); script escapes component trust boundary (S:C) with limited C/I/A impact.

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

Primary rating from Vendor (Patchstack).

CVSS VectorVendor: Patchstack

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

DescriptionCVE.org

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Dan Rossiter Document Gallery document-gallery allows Reflected XSS.This issue affects Document Gallery: from n/a through <= 5.1.0.

Executive ViewAI

Why It Matters

The Dan Rossiter Document Gallery WordPress plugin (all versions through 5.1.0) contains an unauthenticated cross-site scripting vulnerability allowing attackers to inject malicious scripts into victim browsers via crafted links, compromising WordPress user sessions and site data. Although no public exploit identified at time of analysis, the vulnerability affects any WordPress site running this plugin and has no vendor patch currently available. Organizations must immediately inventory deployment scope and enforce interim protections to prevent session hijacking and unauthorized site access.

Business Impact: High
Compensating Controls

Disable or remove the plugin until a vendor patch is released; deploy Web Application Firewall rules to detect and block XSS injection attempts targeting plugin endpoints; implement IP-based access restrictions on plugin functionality; establish log monitoring to detect exploitation attempts in web server access logs.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Low
niche WordPress document-gallery plugin, limited install base
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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
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