Document Gallery AJAX output permits unauthenticated reflected XSS
Document Gallery before 5.1.1 exposes an unauthenticated AJAX action that reflects attacker-controlled input without sufficient sanitization and output escaping. An attacker can construct a request that executes script in the affected site's origin when a victim follows or submits it. The CNA record does not disclose the AJAX action, parameter or rendering function.
- Component
- Document Gallery
- Plugin slug
document-gallery- Affected
- < 5.1.1
- Safe version
5.1.1- Published
- Jul 27, 2026
This CVE was published Jul 27, 2026 and is one of 2 known issues for this plugin.
Update, patch or deactivate.
Update Document Gallery to 5.1.1 or later. Avoid untrusted links targeting the site until the update is complete and review AJAX logs for encoded markup.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
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.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N