Skip to main content

Document Gallery CVE-2026-12982

| EUVDEUVD-2026-49068 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-27 WPScan GHSA-7prg-mrx9-fj7w
6.1
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft malicious URL with XSS payload
  2. Delivery
    Deliver link to victim
  3. Exploit
    Victim clicks link
  4. Install
    AJAX request reflects payload
  5. C2
    Browser executes script
  6. Execute
    Attacker steals session or performs actions
  7. Impact
    Impact: compromised user session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability exists in an unauthenticated AJAX action of the Document Gallery plugin. No special conditions beyond having the plugin installed and active are required. However, exploitation is limited because it requires user interaction: the victim must click or otherwise invoke a crafted URL (UI:R in CVSS). The XSS is reflected, not stored, meaning the attacker cannot passively wait for victims; they must deliver the malicious link via email, social media, or other means.

Impact

The CVSS v3.1 base score of 6.1 (Medium) reflects a network-attackable, low-complexity vulnerability that requires user interaction (UI:R) and has a scope change (S:C) but only low confidentiality and integrity impact. While the CVSS itself suggests limited direct damage, the existence of a public proof-of-concept exploit (as reported by WPScan) elevates the practical risk for targeted attacks. No CISA KEV listing or EPSS score is available, so widespread active exploitation is not confirmed. The requirement for user interaction somewhat limits automated exploitation but does not prevent social engineering campaigns.

Exploit ScenarioDerived

An attacker crafts a URL containing a JavaScript payload in a parameter that triggers an unauthenticated AJAX action. When an authenticated administrator (or any user) clicks the link, the payload executes in their browser context, allowing the attacker to steal session cookies, perform actions on behalf of the victim, or redirect them to a malicious site.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 27, 2026

Reflected cross-site scripting (XSS) in the WordPress Document Gallery plugin before version 5.1.1 allows unauthenticated attackers to inject malicious scripts via an unsanitized parameter in an AJAX action. A publicly available proof-of-concept exploit exists, increasing the immediate risk for sites running affected versions.

RemediationAI

Upgrade the Document Gallery plugin to version 5.1.1 or later. The vendor has released this patched version. No practical workarounds exist other than temporarily deactivating the plugin, which would remove functionality. The WPScan reference provides confirmation of the fix.

Affected VersionsENISA

Document Gallery 0 <5.1.1

Affected Packages

euvd document_gallery fix: 5.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a classic Reflected XSS (CWE-79) affecting a WordPress plugin. WordPress AJAX actions are handlers that process requests without a full page reload; in this plugin, a user-supplied input is reflected back in the response without proper sanitization, allowing script injection. The CPE string cpe:2.3:a:unknown:document_gallery:*:*:*:*:*:*:*:* identifies the plugin, and the affected versions are all prior to 5.1.1.

Know when Document Gallery gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (WPScan) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Consistent with description: unauthenticated network attack, low complexity, requires user interaction.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:Active/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
Patch available
Jul 27, 2026 - 07:01 EUVD
CVE Published
Jul 27, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 27, 2026 - 06:00 cve.org
MEDIUM 6.1

DescriptionCVE.org

The Document Gallery WordPress plugin before 5.1.1 does not properly sanitise and escape user input before reflecting it back in the response of an unauthenticated AJAX action, leading to a Reflected Cross-Site Scripting vulnerability which can be exploited against unauthenticated users.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular WordPress gallery plugin
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy