CVE-2026-74921: CWE-79 Cross-Site Scripting (XSS) in Document Gallery
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.
CVSS v3.1
Score 6.8medium
Affected software
Document Gallery
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Document Gallery WordPress plugin versions 4.0 through 5.1.1 contain a CWE-79 XSS vulnerability due to improper sanitization and escaping of gallery shortcode attributes. These attributes are embedded in single-quoted HTML attributes in the gallery markup, enabling users with Contributor or higher privileges to inject malicious event handlers. When a user with higher privileges views the gallery, the injected handlers execute, potentially compromising confidentiality, integrity, and availability.
Potential Impact
Successful exploitation allows an attacker with Contributor or higher privileges to execute arbitrary script code in the context of higher privileged users who view the gallery content. This can lead to full compromise of the affected user's session, data theft, or further attacks within the WordPress environment. The CVSS 3.1 score of 6.8 reflects a medium severity with high impact on confidentiality, integrity, and availability, requiring user interaction and elevated privileges to exploit.
Mitigation Recommendations
No official patch or fix is currently confirmed for this vulnerability. Users should monitor the vendor's advisory for updates. Until a fix is available, restrict Contributor role assignments and avoid exposing galleries to higher privileged users. Review and sanitize user input manually if possible to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- WPScan
- Date Reserved
- 2026-08-17T11:27:41.298Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad5c0f22cdf04f65622784d
Added to database: 10/19/2026, 07:04:18 UTC
Last enriched: 10/19/2026, 07:18:50 UTC
Last updated: 10/19/2026, 19:06:47 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.