Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-74923 Overview
CVE-2026-74923 is an information disclosure vulnerability in the Document Gallery WordPress plugin through version 5.1.1. The plugin fails to perform capability or ownership checks when generating a gallery on demand. Unauthenticated attackers can enumerate titles, descriptions, and direct file URLs of media attached to unpublished, private, or trashed content. The flaw is tracked under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Critical Impact
Unauthenticated remote attackers can disclose metadata and direct URLs for media files attached to non-public WordPress content, bypassing intended access restrictions.
Affected Products
- Document Gallery WordPress plugin versions through 5.1.1
- WordPress sites with the plugin installed and gallery-on-demand functionality enabled
- Public-facing WordPress deployments exposing the plugin's AJAX or shortcode endpoints
Discovery Timeline
- 2026-10-16 - CVE CVE-2026-74923 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-74923
Vulnerability Analysis
The Document Gallery plugin generates galleries dynamically from WordPress media attachments. When servicing on-demand gallery requests, the plugin does not validate the requester's capabilities or verify whether the parent post is published and publicly accessible. Attackers can request galleries that reference attachments associated with draft, private, pending, future, or trash posts. The response contains the attachment title, description, and direct file URL for each item.
This exposure undermines WordPress post-status access controls. Media that administrators expect to remain hidden until publication becomes discoverable by unauthenticated clients. Disclosed URLs typically resolve to files hosted under /wp-content/uploads/, which are readable without authentication once the path is known.
Root Cause
The root cause is a missing authorization check in the gallery generation code path. The plugin queries attachment metadata without filtering by post_status and without calling capability checks such as current_user_can('read_private_posts'). See the WPScan Vulnerability Advisory for the technical breakdown.
Attack Vector
Exploitation occurs over the network with no authentication and no user interaction. An attacker issues a crafted request to the plugin's gallery generation endpoint, iterating through attachment or parent post identifiers. The server returns gallery data for attachments regardless of the parent post's visibility, leaking titles, descriptions, and file URLs.
No verified public exploit code is available at the time of publication. See the WPScan advisory for additional detail on the vulnerable request pattern.
Detection Methods for CVE-2026-74923
Indicators of Compromise
- Unauthenticated HTTP requests to WordPress AJAX endpoints referencing Document Gallery actions, particularly from a single source iterating through sequential post or attachment identifiers.
- Access log entries showing direct retrieval of files under /wp-content/uploads/ immediately after calls to the plugin's gallery endpoints.
- Spikes in admin-ajax.php traffic with Document Gallery action parameters originating from unauthenticated sessions.
Detection Strategies
- Correlate web server access logs for enumeration patterns against Document Gallery endpoints with no associated authentication cookie.
- Deploy WordPress audit logging to record gallery generation requests referencing non-published parent posts.
- Alert on bulk retrieval of upload directory URLs that match attachments belonging to private or draft posts.
Monitoring Recommendations
- Forward WordPress and web server logs to a centralized analytics platform for enumeration analysis.
- Monitor outbound bandwidth from /wp-content/uploads/ for unusual read volumes from single source addresses.
- Track plugin inventory and version drift across WordPress hosts to identify installations still running Document Gallery 5.1.1 or earlier.
How to Mitigate CVE-2026-74923
Immediate Actions Required
- Audit WordPress installations for the Document Gallery plugin and identify any version at or below 5.1.1.
- Disable or deactivate the plugin on affected sites until a fixed release is applied.
- Review private, draft, and trashed posts to assess whether sensitive media may already have been enumerated.
Patch Information
At the time of publication, no fixed version is referenced in the NVD entry. The vulnerability affects Document Gallery through version 5.1.1. Monitor the WPScan Vulnerability Advisory and the plugin's WordPress.org listing for an updated release and apply it as soon as available.
Workarounds
- Deactivate and remove the Document Gallery plugin until a patched release is published.
- Restrict access to admin-ajax.php endpoints invoked by the plugin using a web application firewall rule that blocks unauthenticated gallery generation requests.
- Relocate or restrict direct access to sensitive media files under /wp-content/uploads/ using web server rules that validate the referring post status.
# Example Apache rule to block unauthenticated Document Gallery AJAX actions
<LocationMatch "/wp-admin/admin-ajax\.php">
SetEnvIfNoCase Request_URI "action=document_gallery" DG_REQUEST
Require all granted
<RequireAll>
Require not env DG_REQUEST
</RequireAll>
</LocationMatch>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

