CVE Catalog

CVE-2026-74921

MediumCVSS 6.8
Published: Updated: Translated: NVD NIST

Summary

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. This allows users with the Contributor role and above to inject arbitrary event handlers that execute when a higher privileged user views the content.

Risk Assessment

A low-privileged user can inject malicious JavaScript that executes in the browser of an administrator or other privileged user, potentially leading to session takeover. The risk affects sites with multiple content authors.

Recommendation

Update the Document Gallery plugin to a version later than 5.1.1. Restrict Contributor roles to trusted users until updated.

Other vulnerabilities in Document Gallery WordPress plugin

See all
Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS