Cross-Site Scripting Vulnerability in Document Gallery Plugin by WordPress
CVE-2026-74921

6.8MEDIUM

Key Information:

Vendor

WordPress

Vendor
CVE Published:
19 October 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2026-74921?

The Document Gallery plugin for WordPress, up to version 5.1.1, suffers from a Cross-Site Scripting vulnerability due to inadequate sanitization and escaping of several gallery shortcode attributes. This flaw permits users with the Contributor role or higher to inject arbitrary event handlers into the rendered HTML. Consequently, when content is viewed by administrators or users with elevated privileges, these injected scripts may execute, potentially compromising the integrity of the site.

Affected Version(s)

Document Gallery 4.0 <= 5.1.1

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V3.1

Score:
6.8
Severity:
MEDIUM
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
High
User Interaction:
Required
Scope:
Unchanged

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Philipp Doblhofer
WPScan
.