Description
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.
Published: 2026-10-14
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Apply Patch
AI Analysis

Impact

The Document Gallery plugin for WordPress suffers from a stored cross‑site scripting vulnerability that stems from insufficient sanitization and escaping of data received through the dg_thumber_webhook action request body. An unauthenticated attacker can inject arbitrary JavaScript into pages that will execute whenever a page containing the injected payload is viewed. The flaw is activated only if the plugin’s logging feature is enabled, which is the default when WP_DEBUG is true or when an administrator manually turns it on.

Affected Systems

The affected product is Dan Rossiter’s Document Gallery plugin, versions 5.1.1 and earlier. The vulnerability exists in the logging mechanism that records webhook data, and only versions up to and including 5.1.1 display the stored payload in a public‑facing page when logging is enabled. Sites running any of these versions and that have logging enabled are at risk.

Risk and Exploitability

The CVSS score of 7.2 signals a high severity risk, but the EPSS score of less than 1 % indicates that exploitation is currently unlikely. The vulnerability is not catalogued in CISA’s KEV list. Because the exploit requires no authentication and uses a publicly accessible endpoint, an attacker can craft a request to dg_thumber_webhook when logging is active, store malicious payloads, and cause any visitor who loads the page to run the injected script. The overall risk is moderate to high for sites with logging enabled.

Generated by OpenCVE AI on October 16, 2026 at 01:28 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Document Gallery to the latest available release that includes fixes for the dg_thumber_webhook input sanitization and output escaping, such as any version newer than 5.1.1.
  • If upgrading is not immediately possible, disable the plugin’s logging feature in the Advanced settings to prevent untrusted webhook data from being stored and rendered.
  • Turn off WordPress debugging by setting WP_DEBUG to false in wp-config.php, ensuring that logging does not become enabled by default.

Generated by OpenCVE AI on October 16, 2026 at 01:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Dan Rossiter
Dan Rossiter document Gallery
Wordpress-extensions
Wordpress-extensions document Gallery
Vendors & Products Dan Rossiter
Dan Rossiter document Gallery
Wordpress-extensions
Wordpress-extensions document Gallery

Thu, 15 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 14 Oct 2026 04:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Document Gallery <= 5.1.1 - Unauthenticated Stored Cross-Site Scripting
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Dan Rossiter Document Gallery
Wordpress-extensions Document Gallery
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-15T16:43:50.363Z

Reserved: 2026-08-20T12:05:15.055Z

Link: CVE-2026-77114

cve-icon Vulnrichment

Updated: 2026-10-15T16:39:33.511Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T04:18:36.537

Modified: 2026-10-15T17:17:27.450

Link: CVE-2026-77114

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T21:00:08Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')