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-107323 Overview
CVE-2026-107323 is a stored Cross-Site Scripting (XSS) vulnerability in the Gallery PhotoBlocks WordPress plugin before version 1.3.6. The plugin fails to sanitize and escape one of its gallery settings before outputting the value into an HTML attribute. Authenticated users with Contributor-level access or higher can inject JavaScript that executes in the browser of any visitor viewing a page containing the affected gallery, including administrators. The flaw is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
A Contributor-level account can plant persistent JavaScript that executes in an administrator's browser session, enabling account takeover of the WordPress site.
Affected Products
- Gallery PhotoBlocks WordPress plugin versions prior to 1.3.6
- WordPress sites that permit Contributor-level registration or higher
- Any page or post embedding a vulnerable PhotoBlocks gallery
Discovery Timeline
- 2026-10-10 - CVE-2026-107323 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-107323
Vulnerability Analysis
The vulnerability resides in how Gallery PhotoBlocks renders one of its gallery configuration settings. The plugin writes a user-controlled value directly into an HTML attribute without applying contextual escaping. An authenticated attacker configures a gallery with a crafted payload containing attribute-breaking characters and JavaScript. When WordPress renders the page containing the gallery, the browser parses the payload as script and executes it in the context of the viewing user.
Because Contributor accounts are often granted liberally on multi-author WordPress sites, the privilege barrier is low. The payload persists in the database, making this a stored XSS rather than a reflected one.
Root Cause
The plugin omits proper output escaping, specifically a function such as esc_attr() from the WordPress API, before writing the gallery setting into an HTML attribute. Input sanitization at save time is also insufficient. This is a textbook attribute-context XSS pattern where a single unescaped quote character allows an attacker to break out of the attribute and introduce an event handler.
Attack Vector
Exploitation requires an authenticated session with Contributor privileges or above and a user interaction to view the page. The attacker creates or edits a gallery, submits a malicious value in the vulnerable setting field, and publishes or submits content that embeds the gallery. When an administrator previews or reviews the content, the injected script executes with the administrator's session. Attackers typically use this foothold to create new administrator accounts, modify plugin or theme files, or exfiltrate authentication cookies and nonces.
No verified public proof-of-concept code is available. Technical details are documented in the WPScan Vulnerability Report.
Detection Methods for CVE-2026-107323
Indicators of Compromise
- Gallery PhotoBlocks settings records containing <script>, onerror=, onload=, or javascript: substrings in the WordPress wp_options or wp_postmeta tables.
- Unexpected administrator accounts created shortly after a Contributor-level user edited or published a gallery.
- Outbound HTTP requests from administrator browsers to unfamiliar domains immediately after loading pages containing PhotoBlocks galleries.
Detection Strategies
- Audit all gallery configuration values stored by the PhotoBlocks plugin for HTML or JavaScript syntax that should not appear in attribute values.
- Review WordPress audit logs for Contributor accounts that recently created or modified galleries, then correlate against subsequent administrator logins.
- Scan rendered page HTML in a staging environment for script content originating from plugin-generated attributes.
Monitoring Recommendations
- Enable a WordPress activity log plugin and alert on gallery setting modifications performed by non-administrator roles.
- Monitor web server access logs for POST requests to admin-ajax.php and admin-post.php carrying PhotoBlocks action parameters.
- Track creation of new WordPress users with the administrator role as a high-priority event.
How to Mitigate CVE-2026-107323
Immediate Actions Required
- Update the Gallery PhotoBlocks plugin to version 1.3.6 or later on all WordPress installations.
- Review every existing gallery for suspicious setting values and remove any content containing HTML or JavaScript.
- Audit the WordPress user list and remove unknown or unneeded Contributor, Author, Editor, and Administrator accounts.
Patch Information
The vendor addressed the issue in Gallery PhotoBlocks version 1.3.6 by applying proper output escaping to the affected gallery setting. Refer to the WPScan Vulnerability Report for the fixed version reference and additional technical context.
Workarounds
- Restrict Contributor-level and higher accounts to trusted users only until the plugin is patched.
- Deploy a Web Application Firewall (WAF) rule to block requests containing attribute-breaking characters targeting PhotoBlocks endpoints.
- Temporarily deactivate the Gallery PhotoBlocks plugin on sites where immediate patching is not possible.
# Update Gallery PhotoBlocks using WP-CLI
wp plugin update gallery-photoblocks --version=1.3.6
# Verify installed version
wp plugin get gallery-photoblocks --field=version
# List users with Contributor role or higher for review
wp user list --role=contributor --fields=ID,user_login,user_email,user_registered
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

