CVE-2026-74920

Document Gallery <= 5.1.1 - Reflected XSS via data-shortcode Attribute

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

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
First Time appeared Wordpress-extensions
Wordpress-extensions document Gallery
Vendors & Products Wordpress-extensions
Wordpress-extensions document Gallery
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'}

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
Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
WPScan
Published
Updated
Oct 15, 2026, 11:01 AM
Reserved
Aug 17, 2026, 11:27 AM
Status
Deferred
Published
Oct 15, 2026, 7:18 AM
Modified
Oct 15, 2026, 2:47 PM