# CVE-2026-12982: Document Gallery < 5.1.1 - Reflected XSS via dg_generate_gallery

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-27T06:00:02.192Z
- Modified: 2026-07-27T20:33:01.673Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: WPScan

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

(As written by CVE List.)

## Affected

- Unknown Document Gallery: before 5.1.1

## References

- <https://wpscan.com/vulnerability/a3c279ce-5db1-4331-ad74-4eef49619737/> (exploit, technical-description, vdb-entry)

## Sources

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

---

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