CVE-2026-39781

WordPress Document Gallery plugin <= 5.1.1 - Cross Site Scripting (XSS) vulnerability

Published Oct 6, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Dan Rossiter Document Gallery document-gallery allows Reflected XSS.This issue affects Document Gallery: from n/a through 5.1.1.

Analysis

AI-generated

Technical impact

The vulnerability is an unauthenticated cross‑site scripting flaw that allows an attacker to inject malicious script into the Document Gallery plugin data fields. This flaw permits the attacker to execute arbitrary JavaScript in the browser of any user who views the affected gallery, which can lead to session hijacking, credential theft, or defacement. The weakness is a classic input validation flaw identified as CWE‑79.

Affected Systems

Affected are installations of the Dan Rossiter Document Gallery WordPress plugin with a version of 5.1.1 or older. No other products or versions are listed in the CNA data. The flaw resides in the plugin’s data handling code that does not properly escape user supplied content.

Risk and Exploitability

The CVSS score of 7.1 reflects a high impact on confidentiality, integrity, and availability. The EPSS score of 0.00191 (< 1%) indicates a very low probability that this vulnerability will be exploited in the wild, yet the CVSS assessment shows it remains a serious risk. The flaw is not currently listed in CISA’s KEV catalog. Exploitation requires no authentication and could be carried out by inserting malicious JavaScript into a gallery entry or via a crafted URL parameter, meaning any visitor to the affected site is potentially at risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Document Gallery to a version newer than 5.1.1.
  • If upgrading is not possible immediately, remove or disable the plugin until a patch is released.
  • Apply a robust Content Security Policy that restricts script execution to trusted sources.
  • Validate and escape all user inputs through security plugins or custom code.

Generated by OpenCVE AI on October 7, 2026 at 05:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Unauthenticated Cross Site Scripting (XSS) in Document Gallery <= 5.1.1 versions. Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Dan Rossiter Document Gallery document-gallery allows Reflected XSS.This issue affects Document Gallery: from n/a through 5.1.1.
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': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Unauthenticated Cross Site Scripting (XSS) in Document Gallery <= 5.1.1 versions.
Title WordPress Document Gallery plugin <= 5.1.1 - Cross Site Scripting (XSS) vulnerability
Weaknesses CWE-79
References
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Patchstack
Published
Updated
Oct 15, 2026, 4:32 PM
Reserved
Apr 7, 2026, 10:59 AM
Status
Deferred
Published
Oct 6, 2026, 9:17 AM
Modified
Oct 15, 2026, 9:17 AM