XSS in Document Gallery

CVE-2026-74921

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.

Vulnerability class: XSS (Cross-Site Scripting)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H.

EPSS exploit prediction

No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.

Affected products

  • Document Gallery

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-74921?
CVE-2026-74921 is a medium-severity vulnerability in Document Gallery, classified under Cross-site Scripting. CVSS score: 6.8/10. Published 2026-10-19.
How severe is CVE-2026-74921?
Medium severity. CVSS v3 base score is 6.8 out of 10.