CVE-2026-77114

Document Gallery <= 5.1.1 - Unauthenticated Stored Cross-Site Scripting

Published Oct 14, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Oct 15, 2026, 4:43 PM
Reserved
Aug 20, 2026, 12:05 PM
Status
Deferred
Published
Oct 14, 2026, 4:18 AM
Modified
Oct 15, 2026, 5:17 PM