---
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: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L'
cwe:
  - CWE-79
product: Document Gallery
affected:
  - document_gallery <= 5.1.1
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T14:47:05.720'
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
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-15T10:37:40.775037Z'
ingestedAt: '2026-10-15T06:56:27.295Z'
epss: 0.00142
epssPercentile: 0.03463
---

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