---
id: CVE-2026-74920
title: >-
  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
  Scrip…
summary: >-
  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
  Scrip…
severity: none
cwe:
  - CWE-79
product: Document Gallery
affected:
  - document_gallery <= 5.1.1
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T07:18:02.610'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-74920'
references:
  - url: 'https://wpscan.com/vulnerability/aa80cef6-b2fd-47ef-bac9-53438aa27573/'
    label: contact@wpscan.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-15T06:56:27.295Z'
---

## Overview

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.

## Remediation

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