Skip to main content

Document Gallery EUVDEUVD-2026-104098

| CVE-2026-74921 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-19 WPScan
6.8
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as Contributor-level user
  2. Delivery
    Inject event handler into gallery shortcode attribute
  3. Exploit
    Save malicious post/content for review
  4. Execution
    Administrator or editor views the content
  5. Impact
    Script executes in privileged session, enabling account/site takeover

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 an authenticated account with the WordPress Contributor role or higher on the target site, and the ability to submit content containing a Document Gallery gallery shortcode whose unsanitized attributes are embedded in a single-quoted HTML attribute. The payload only fires when a higher-privileged user (editor/administrator) subsequently views or reviews the attacker's content (UI:R), so success depends on that review workflow actually occurring. Affected: Document Gallery plugin versions through 5.1.1. Limiting factors: no anonymous/unauthenticated path, required authenticated low-privilege foothold, and mandatory victim interaction by a privileged user.

Impact

This is a moderate-severity stored cross-site scripting (XSS) flaw in the Document Gallery WordPress plugin, reported by WPScan with publicly available exploit code (POC=YES), but NOT listed in CISA KEV and with no EPSS score provided in the input - so there is no evidence of active or widespread exploitation, only demonstrated feasibility. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H, score 6.8) contains notable internal inconsistencies that should be verified: the description states exploitation is available to 'Contributor role and above' - a low-privilege authenticated user - which maps to PR:L, not the PR:H in the vector; and the C:H/I:H/A:H impact is inflated for a scope-unchanged XSS (A:H in particular is not supported, since XSS does not directly impair availability). This pattern is typical of WPScan ratings that account for the downstream admin-session compromise an XSS can enable. Realistically this is a conditional, multi-precondition issue (attacker needs an authenticated Contributor account AND a higher-privileged user must view the malicious content), so it is a 'patch in normal cadence' item rather than an emergency, despite the public POC. No SSVC decision data was supplied.

Exploit ScenarioDerived

An attacker who already holds a Contributor account (self-registered or granted on a multi-author site) creates a post containing a Document Gallery shortcode with a malicious event handler embedded in an unescaped attribute. When an editor or administrator previews or reviews that pending content, the injected JavaScript executes in their authenticated browser session, letting the attacker perform admin-level actions (e.g., creating a rogue admin or injecting a backdoor). A public POC for this injection exists via WPScan.

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

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

Alert me

AnalysisAIv1 – Oct 19, 2026

Stored cross-site scripting in the Document Gallery WordPress plugin through 5.1.1 lets any authenticated user with the Contributor role or higher embed malicious event-handler attributes inside gallery shortcode attributes, which are then rendered unescaped into the page markup. Because the injected payload is stored in post content, it executes in the browser of a higher-privileged editor or administrator who later views or previews that content, potentially leading to session/token theft or full site takeover via an admin session. Publicly available exploit code exists (WPScan advisory), but the flaw is not in CISA KEV and carries no EPSS score in the supplied data, so there is no evidence of active or widespread exploitation - only demonstrated feasibility. Risk is tempered by the required authenticated foothold and the mandatory privileged-victim interaction (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N per independent assessment).

RemediationAI

Patch status: No vendor-released patch identified at time of analysis - no fixed version is published in the supplied data, so confirm the current release on the WordPress.org plugin page and the WPScan advisory (https://wpscan.com/vulnerability/b0b97661-c671-420c-8fca-22666862b379/) before assuming 5.1.1 is the newest build; upgrade to the first release that sanitises gallery shortcode attributes, or remove/deactivate the plugin if no fix is available. Compensating controls, in order of preference: deactivate Document Gallery entirely until a fix is published (side effect: document listings stop rendering); if it must stay live, strip or reject gallery shortcodes from Contributor-submitted content via a content-filter snippet or a security plugin that sanitises post content on save (side effect: legitimate document galleries must then be authored by trusted editors only); restrict or temporarily revoke Contributor accounts and tighten role assignments so only vetted users can create content (side effect: editorial workflow disruption); instruct editors and administrators to preview untrusted pending posts only in a separate browser profile or after logging out, since the payload fires on view (side effect: unreliable human control); and deploy WAF/virtual-patching rules that block event-handler and script patterns inside shortcode attributes in POST bodies (side effect: possible false positives on legitimate markup, and no protection for payloads already stored). Monitor admin session integrity and rotate credentials/salts if a privileged user has already previewed contributed content.

Affected VersionsENISA

Document Gallery 4.0 ≤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 that renders document/file listings through gallery shortcodes, and its handler fails to sanitise or escape several shortcode attributes before interpolating them into a single-quoted HTML attribute in the rendered gallery output - the classic CWE-79 stored cross-site scripting pattern where shortcode attribute values are treated as trusted markup. Because the plugin controls only its own shortcode parsing, the flaw surfaces wherever contributor-submitted content is stored and later rendered: an attacker closes out of the single-quoted attribute and injects event handlers (for example onmouseover/onfocus payloads) that fire on rendering. WordPress core itself filters some post content for lower roles, but plugin shortcode attribute processing frequently bypasses those filters, which is why Contributor-level accounts - normally restricted to drafts and pending posts - are sufficient as an injection vector. The supplied CPE (cpe:2.3:a:unknown:document_gallery) and the missing CWE field mean the vendor/library mapping is unconfirmed; the 'RCE' tag in the source metadata is a misclassification, since the demonstrable impact here is script execution in a privileged browser session, not server-side remote code execution. A scope change (S:C) is scored because the injected script runs with the victim's privileges rather than the attacker's.

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 (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.7 HIGH

Contributor-level account gives PR:L (not PR:H); privileged victim must view content (UI:R); script runs cross-context in admin browser (S:C) enabling C:H/I:H, but XSS does not impair availability (A:N).

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

DescriptionCVE.org

The Document Gallery WordPress plugin through 5.1.1 does not sanitise or escape several gallery shortcode attributes before embedding them in a single-quoted HTML attribute in the rendered gallery markup, allowing users with the Contributor role and above to inject arbitrary event handlers that execute when a higher privileged user views the content.

Threat Intelligence Overview

Prevalence
Low
niche WordPress document-gallery plugin, modest install base
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
4 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 N/A
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
None
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.

References

Advisories & patches

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy