Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify site with logging enabled
-
DeliverySend crafted dg_thumber_webhook request
-
ExploitStore unsanitized payload in log
-
ExecutionAdmin views logging tab
-
PersistScript executes in admin browser
-
ImpactHijack session or inject admin 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 requires the Document Gallery plugin's logging option (Advanced settings) to be active, which is the default state only when WP_DEBUG is set to true; on normal production sites an administrator must have manually enabled logging, so default installations are not affected. The injected payload is stored via the 'dg_thumber_webhook' action request body and executes when a user (typically an administrator) subsequently accesses the page/log where the content is rendered, so the primary limiting factors are the non-default logging configuration and the need for a privileged user to view the affected page; no authentication is required to inject the payload. |
| Impact | The vendor-supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N, base 7.2) presents this as a network-reachable, unauthenticated, low-complexity stored XSS with scope change, which on paper is a high priority. However, the description introduces a significant mitigating precondition the CVSS score does not reflect: exploitation requires the plugin's logging feature to be enabled in Advanced settings, which is only the default when WP_DEBUG is true and otherwise must be manually turned on by an administrator. This conflicts with the AC:L rating - a non-default configuration dependency realistically warrants higher attack complexity, so the real-world attack surface is narrower than 7.2 suggests. No EPSS score was provided in the input, the CVE is not listed in CISA KEV, and no public exploit code is referenced, meaning there is no public exploit identified at time of analysis. Net assessment: this is a genuine unauthenticated stored XSS but is conditionally exploitable rather than broadly exploitable, making it a moderate rather than urgent priority for most deployments, with elevated priority only on sites running WP_DEBUG or that have manually enabled plugin logging. |
| Exploit ScenarioDerived | An attacker sends a crafted request to the 'dg_thumber_webhook' action on a WordPress site running Document Gallery <=5.1.1 with logging enabled; the unsanitized request body is written into the plugin's log. When an administrator later views the logging tab, the injected script executes in their authenticated browser session, enabling cookie theft, admin-account actions, or further site compromise. No public proof-of-concept is referenced in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Stored cross-site scripting in the Document Gallery plugin for WordPress (all versions up to and including 5.1.1) allows unauthenticated remote attackers to inject arbitrary JavaScript into the plugin's thumber webhook action request body, which is later rendered unsanitized in the plugin's administrative logging view and executes in the browser of any user who opens the affected page. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N, base 7.2) makes this look like a high-priority unauthenticated XSS, but exploitation has a real prerequisite: logging must be enabled in the plugin's Advanced settings, which is only the default when WP_DEBUG is true, so an administrator on a normal production site must have manually turned logging on - default installations are not affected. No public exploit code and no confirmed active exploitation were identified at time of analysis, and no vendor-released patch version is confirmed in the available data.
RemediationAI
No vendor-released patch version is confirmed in the available data, so remediation should start with removing or disabling the attack surface. The single most effective mitigation is to turn OFF logging in the Document Gallery plugin's Advanced settings (Settings tab for logging), because the stored payload only executes when the log page renders it - no logging, no sink - and this costs you only diagnostic log data. Ensure WP_DEBUG is not set to true in wp-config.php on production sites, since WP_DEBUG being true is what makes logging the default; leaving WP_DEBUG on also produces other WordPress disclosure issues. Restrict access to the plugin's admin settings and logging tab pages to trusted administrators, and if the thumber webhook endpoint is not required, block or reject POSTs to the 'dg_thumber_webhook' action at the web server/WAF layer (for example by matching the action parameter) so unauthenticated bodies never reach the plugin. If the plugin is non-essential, deactivating and deleting Document Gallery eliminates the issue entirely and is the safest option given the absence of a confirmed fixed release. Monitor the plugin's Trac/tags directory (https://plugins.trac.wordpress.org/browser/document-gallery/) and the Wordfence advisory page for a released patched version before re-enabling logging, and review existing log entries for injected script content prior to cleanup, since historically stored payloads may already be persisted in the database.
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
The vulnerability is a CWE-79 improper neutralization of input during web page generation (stored XSS) in the thumber subsystem of the Document Gallery plugin. Document Gallery delegates thumbnail/image generation to the Thumber.co service through a client class (src/inc/thumbers/class-thumber-co-thumber.php and thumber-co/class-thumber-client.php) and exposes a 'dg_thumber_webhook' action that accepts a request body from the remote thumber service. That request body is written into the plugin's log records, and the administrative logging tab (src/admin/tabs/logging-tab.php, around line 99) renders those log entries into the settings page without adequate output escaping, so attacker-supplied markup persists in the database and executes when the log is displayed. Tracked against CPE cpe:2.3:a:danrossiter:document_gallery:*:*:*:*:*:*:*:* (vendor danrossiter), the affected code paths are all in the 5.1.1 tag. The CVSS vector's PR:N confirms the injection point is unauthenticated (the webhook endpoint accepts the malicious body without credentials), while the S:C scope change reflects that script executed in the admin origin can act outside the plugin's own security scope. Our independent assessment lowers the attack complexity to AC:H because the payload only becomes exploitable when the non-default logging option is active and a privileged user subsequently views the log.
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:N/UI:N/S:C/C:L/I:L/A:N
Injection is unauthenticated and remote (PR:N, AV:N), but requires non-default logging to be enabled so AC:H; stored script executes in a victim's browser context, giving S:C with limited C:L/I:L and no availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Document Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'dg_thumber_webhook' Action Request Body in all versions up to, and including, 5.1.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires that logging be enabled in the plugin's Advanced settings, which is only the default state when WP_DEBUG is true; otherwise an administrator must manually enable it.
Executive ViewAI
The Document Gallery plugin for WordPress (versions up to and including 5.1.1) contains a stored cross-site scripting issue that can run attacker-controlled JavaScript in an administrator’s browser when the plugin’s logging view is opened. Exposure is limited because the flaw requires the plugin’s Advanced logging setting to be enabled, which is not the default on normal production sites, but affected administrators could suffer session compromise and subsequent site control loss. No public exploit identified at time of analysis, and leadership should treat this as a configuration-dependent risk that must be verified and mitigated quickly.
No vendor-released patch identified at time of analysis. Interim mitigations: disable the Document Gallery Advanced logging setting to remove the prerequisite; deactivate or remove the plugin on sites that do not require it; restrict wp-admin access; enforce WAF rules that block or sanitize JavaScript in webhook request bodies; monitor administrative logs for injection attempts; and keep WP_DEBUG false.
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 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-100789
GHSA-w4hg-p2f9-2fj7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB