Description
The Document Gallery WordPress plugin through 5.1.1 does not sanitise or escape several gallery shortcode attributes before embedding them in a single-quoted HTML attribute in the rendered gallery markup, allowing users with the Contributor role and above to inject arbitrary event handlers that execute when a higher privileged user views the content.
Severity (CVSS)
| Base score | 6.8 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| Provided by | CNA |
Weaknesses
- — CWE-79 Cross-Site Scripting (XSS)
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Unknown | Document Gallery | 4.0 to <=5.1.1 [affected] |
References
- https://wpscan.com/vulnerability/b0b97661-c671-420c-8fca-22666862b379/ (exploit vdb-entry technical-description)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 19 Oct 2026 07:04 UTC.