WordPress Plugin Vulnerabilities

Document Gallery 4.0 - 5.1.1 - Contributor+ Stored XSS via Gallery Shortcode Attributes

Description

The plugin 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.

Proof of Concept

Affects Plugins

No known fix

References

Classification

Type
XSS
CWE

Miscellaneous

Original Researcher
Philipp Doblhofer
Submitter
Philipp Doblhofer
Submitter website
Verified
Yes

Timeline

Publicly Published
2026-10-13 (about 5 days ago)
Added
2026-10-06 (about 12 days ago)
Last Updated
2026-10-06 (about 12 days ago)

Other