CVE-2026-77114 Document Gallery <= 5.1.1 - Unauthenticated Stored Cross-Site Scripting

High 7.2 Published Updated

Unauthenticated attackers can inject arbitrary scripts via webhook requests if logging is enabled, leading to stored XSS execution for users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-77114?

CVE-2026-77114 is a high-severity cross-site scripting vulnerability in danrossiter Document Gallery, published on 14 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-79

Which versions are affected by CVE-2026-77114?

How do I fix CVE-2026-77114?

No fix has been published for CVE-2026-77114 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-77114 being exploited?

There is no known exploitation of CVE-2026-77114 in the wild and no public exploit code.

Sources

Also known as GHSA-w4hg-p2f9-2fj7.

Is CVE-2026-77114 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free