Description
The Document Gallery WordPress plugin through 5.1.1 does not properly sanitise and escape user input before reflecting it inside an HTML attribute in the response of an unauthenticated AJAX action, leading to a Reflected Cross-Site Scripting vulnerability which can be exploited against any visitor, including a logged-in administrator.
Published: 2026-10-15
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Reflected Cross‑Site Scripting
Action: Update Plugin
AI Analysis

Impact

The Document Gallery WordPress plugin, versions up to 5.1.1, fails to sanitise user input that is reflected back in an HTML attribute during an unauthenticated AJAX request. This flaw allows an attacker to craft a malicious payload that is executed in the browser of any visitor who accesses the affected endpoint, even logged‑in administrators. The result is full execution of arbitrary JavaScript in the victim’s session context, enabling session hijacking, defacement, or the delivery of malware.

Affected Systems

The vulnerability impacts the WordPress plugin Document Gallery up to and including version 5.1.1, exposing any site that incorporates this plugin until the flaw is remediated.

Risk and Exploitability

Because the flaw is exploitable without authentication and the attacker only needs to embed a malicious request into a target URL, it can be leveraged by anyone with knowledge of the endpoint. No CVSS or EPSS score is currently reported, and the issue is not listed in the CISA KEV catalog; nevertheless, reflected XSS remains a high‑priority threat due to its ability to compromise all site visitors and to serve as a vector for secondary attacks.

Generated by OpenCVE AI on October 15, 2026 at 11:19 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Document Gallery to the latest release that includes the input sanitisation fix
  • If an upgrade cannot be performed immediately, temporarily deactivate the plugin or remove the affected AJAX endpoint
  • Implement a strict content‑security‑policy that blocks inline scripts and restricts script execution to trusted sources

Generated by OpenCVE AI on October 15, 2026 at 11:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 06:45:00 +0000

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

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

Type Values Removed Values Added
Weaknesses CWE-79
Metrics cvssV3_1

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

ssvc

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


Thu, 15 Oct 2026 06:45:00 +0000

Type Values Removed Values Added
Description The Document Gallery WordPress plugin through 5.1.1 does not properly sanitise and escape user input before reflecting it inside an HTML attribute in the response of an unauthenticated AJAX action, leading to a Reflected Cross-Site Scripting vulnerability which can be exploited against any visitor, including a logged-in administrator.
Title Document Gallery <= 5.1.1 - Reflected XSS via data-shortcode Attribute
References

Subscriptions

Wordpress-extensions Document Gallery
cve-icon MITRE

Status: PUBLISHED

Assigner: WPScan

Published:

Updated: 2026-10-15T11:01:27.195Z

Reserved: 2026-08-17T11:27:39.155Z

Link: CVE-2026-74920

cve-icon Vulnrichment

Updated: 2026-10-15T10:36:07.792Z

cve-icon NVD

Status : Deferred

Published: 2026-10-15T07:18:02.610

Modified: 2026-10-15T14:47:05.720

Link: CVE-2026-74920

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T06:30:16Z

Weaknesses
  • CWE-79

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