---
id: CVE-2026-77114
title: >-
  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
summary: >-
  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. T…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T04:18:36.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77114'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/document-gallery/tags/5.1.1/src/admin/tabs/logging-tab.php#L99
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/document-gallery/tags/5.1.1/src/inc/thumbers/class-thumber-co-thumber.php#L181
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/document-gallery/tags/5.1.1/src/inc/thumbers/thumber-co/class-thumber-client.php#L169
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/document-gallery/tags/5.1.1/src/inc/thumbers/thumber-co/thumber-client/client.php#L124
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/8ec539ce-aa55-458d-9330-6b6513791ad3?source=cve
    label: security@wordfence.com
tags:
  - nvd
ingestedAt: '2026-10-14T05:14:27.655Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
