Skip to main content

Document Gallery EUVDEUVD-2026-100789

| CVE-2026-77114 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-10-14 Wordfence GHSA-w4hg-p2f9-2fj7
7.2
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Access
    Identify site with logging enabled
  2. Delivery
    Send crafted dg_thumber_webhook request
  3. Exploit
    Store unsanitized payload in log
  4. Execution
    Admin views logging tab
  5. Persist
    Script executes in admin browser
  6. Impact
    Hijack 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.

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 – 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

Document Gallery 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

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

Vendor (Wordfence) PRIMARY 7.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

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

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

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

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche WordPress document-gallery plugin, modest install base
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 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
Yes
Human Impact
Medium
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