# CVE-2026-74921: Document Gallery 4.0 - 5.1.1 - Contributor+ Stored XSS via Gallery Shortcode Attributes

- Severity: Medium 6.8 (CVSS:3.1, scored by WPScan) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T06:46:15.459Z
- Modified: 2026-10-19T21:02:51.987Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: WPScan

## 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.

(As written by CVE List.)

## Affected

- Unknown Document Gallery: from 4.0 up to 5.1.1

## References

- <https://wpscan.com/vulnerability/b0b97661-c671-420c-8fca-22666862b379/> (exploit, technical-description, vdb-entry)

## Sources

- CVE List: [CVE-2026-74921](https://www.cve.org/CVERecord?id=CVE-2026-74921), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-74921](https://nvd.nist.gov/vuln/detail/CVE-2026-74921), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-74921 · Whole record: https://cve.day/CVE-2026-74921.json · Rebuilt by cve.day 2026-11-25T22:59:45.353Z
