Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Contributor-level user
-
DeliveryInject event handler into gallery shortcode attribute
-
ExploitSave malicious post/content for review
-
ExecutionAdministrator or editor views the content
-
ImpactScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
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).
Primary rating from Vendor (WPScan).
CVSS VectorVendor: WPScan
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
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.
More in Document Gallery
View allReflected cross-site scripting in the Document Gallery WordPress plugin (versions through 5.1.1) lets an unauthenticated
Reflected cross-site scripting (XSS) in the WordPress Document Gallery plugin before version 5.1.1 allows unauthenticate
Unauthenticated information disclosure in the Document Gallery WordPress plugin through 5.1.1 lets any remote visitor ge
Unauthenticated attackers can replace the published thumbnail image for any document on WordPress sites running the Docu
Stored cross-site scripting in the Document Gallery plugin for WordPress (all versions up to and including 5.1.1) allows
Unauthenticated cross-site scripting in the Document Gallery WordPress plugin (versions 5.1.1 and earlier) allows remote
Reflected cross-site scripting in the Dan Rossiter Document Gallery WordPress plugin (all versions up to and including 5
EUVD-2026-104098
NVD
CVE.org
VulDB
GitHub PoC
Exploit-DB