Skip to main content

Document Gallery CVE-2026-39781

| EUVDEUVD-2026-93029 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-10-06 Patchstack GHSA-xj76-v28p-2mqj
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 malicious XSS payload/URL
  2. Delivery
    Deliver crafted link to victim
  3. Exploit
    Victim's browser renders unsanitized input
  4. Execution
    Attacker JavaScript executes in site origin
  5. Impact
    Steal session/perform forged actions

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 targets the Document Gallery WordPress plugin at version 5.1.1 or earlier and requires no authentication (PR:N), but it does require victim user interaction (UI:R) - a user must open a crafted link or view attacker-influenced gallery content for the injected script to execute in their browser. The limiting factors are therefore the need for social-engineering/user interaction and the requirement that the vulnerable plugin be installed and the affected code path reachable; impact is bounded by the browser's same-origin context of the WordPress site rather than the server itself. The exact vulnerable parameter/feature is not named in the available description.

Impact

This is a moderate-severity unauthenticated XSS (CWE-79) in the Document Gallery WordPress plugin (<=5.1.1), reported by Patchstack with a CVSS 3.1 base score of 7.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L). The network vector, low complexity, and no-privilege requirements make it easy to reach, but the UI:R flag means a victim must perform an action (e.g. clicking a crafted link or viewing attacker-influenced content), which meaningfully reduces the likelihood of automated mass exploitation. No EPSS score, CISA KEV listing, or public POC was provided in the source data, so there is no evidence of active exploitation or weaponization - the elevated 7.1 is driven largely by the scope-change (S:C) and the assumption of low impact across C/I/A, which is somewhat generous for a typical reflected/stored XSS (availability impact on XSS is debatable). Overall this reads as a real but routine web-application vulnerability to patch on a normal cycle rather than an emergency: no public exploit identified at time of analysis, exploitation requires user interaction, and the real-world ceiling is session/credential theft or action-forgery within the affected site rather than direct server compromise. Note the A:L in the input vector is questionable for XSS - see the assessed vector below.

Exploit ScenarioDerived

An unauthenticated attacker crafts a malicious URL or payload targeting the vulnerable Document Gallery input, then lures a logged-in site visitor or administrator into viewing it. When the victim's browser renders the unsanitized content, attacker-controlled JavaScript executes in the site's origin, enabling session cookie theft, credential harvesting, or forged privileged actions. No public exploit code was identified at time of analysis, and the attack depends on the victim interacting with the crafted content (UI:R).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – Oct 06, 2026

Unauthenticated cross-site scripting in the Document Gallery WordPress plugin (versions 5.1.1 and earlier) allows remote attackers to inject script that executes in the browser of any user who opens a crafted link or views attacker-influenced gallery content, consistent with an assessed CVSS 3.1 base score of 7.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N). No authentication is required (PR:N) and no server-side privileges are needed, but exploitation depends on victim interaction (UI:R), which limits reliable mass exploitation. No public exploit code or confirmed in-the-wild exploitation was identified at time of analysis; the issue was reported by Patchstack and affects any WordPress site running the vulnerable plugin.

RemediationAI

No vendor-released patch or fixed version number is identified in the available data for this issue, so the primary action is to check the Patchstack advisory (https://patchstack.com/database/wordpress/plugin/document-gallery/vulnerability/wordpress-document-gallery-plugin-5-1-1-cross-site-scripting-xss-vulnerability?_s_id=cve) and the WordPress plugin directory for an update above 5.1.1 and apply it as soon as one is published; do not deploy an unverified version number. If no fixed release is available, compensating controls are: deactivate and, if unused, remove the Document Gallery plugin entirely (full protection, at the cost of losing gallery functionality and possibly breaking shortcode-driven pages); if it must stay active, restrict the ability to create or edit galleries and documents to trusted, high-privilege roles only and audit existing galleries for injected markup, since the attack path depends on attacker-influenced content being rendered (this reduces exposure to stored variants but not to content an attacker can otherwise inject). Deploy a WAF or content-security-policy rules that block inline script execution on pages emitting gallery output - CSP will break sites relying on inline scripts, so test in report-only mode first - and treat the requirement for user interaction (UI:R) as mitigating by training editors to avoid untrusted gallery links and by limiting public exposure of gallery endpoints to reduce social-engineering reach.

Affected VersionsENISA

Document Gallery n/a ≤5.1.1

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

Document Gallery is a WordPress plugin (CPE cpe:2.3:a:dan_rossiter:document_gallery) that renders document/attachment listings and galleries via shortcodes and plugin output routines. The flaw is CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e., cross-site scripting): user-controllable input reaching a gallery rendering path is not adequately escaped or sanitized before being emitted into HTML, so script content is reflected or stored and executed in the victim's browser within the WordPress site's origin. The CVSS vector shows scope change (S:C) and low confidentiality, integrity, and availability impact, meaning the script runs in the security context of the affected WordPress site rather than escalating to server compromise; the assessed vector rates availability impact as none (A:N) while the supplied vector lists A:L, so impact should be treated as bounded to the client-side browser session, cookie/session material exposed to that origin, and page content manipulation. The exact vulnerable parameter or gallery feature is not identified in the available description, and no vulnerable-version CPE range boundary is supplied beyond the advisory's statement that versions up to and including 5.1.1 are affected.

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 6.1 MEDIUM

Unauthenticated remote XSS over the network requiring victim interaction (UI:R) with a scope change into the browser context; low C/I impact, but availability is not realistically affected so A:N.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/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

Unauthenticated Cross Site Scripting (XSS) in Document Gallery <= 5.1.1 versions.

Executive ViewAI

Why It Matters

Organizations running WordPress sites with the Document Gallery plugin versions 5.1.1 and earlier face an unauthenticated browser-based script injection risk that can compromise visitor or administrator sessions and enable unauthorized actions on affected sites. No public exploit identified at time of analysis, but no vendor-released patch is available, so any internet-facing site using the vulnerable plugin should be prioritized for immediate mitigation. Leadership should care because a successful attack can undermine trust in public-facing content and potentially lead to broader site compromise through administrative sessions.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; disable or remove Document Gallery plugin versions 5.1.1 and earlier, restrict access to galleries and wp-admin, deploy WAF rules to block XSS attempts, and monitor logs for exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
common WordPress document-gallery plugin, not present in most sites
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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
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

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