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-104646 Overview
CVE-2026-104646 is a stored Cross-Site Scripting (XSS) vulnerability in the Image Photo Gallery Final Tiles Grid WordPress plugin before version 3.6.14. The plugin fails to sanitise several gallery configuration values that can be overridden through its gallery shortcode. These values are printed into an inline script block, allowing authenticated users with contributor-level access or above to inject arbitrary JavaScript. The injected code executes in the session of any viewer, including administrators previewing pending submissions. No gallery ownership is required: attackers can reference any gallery already present on the site.
Critical Impact
Contributors can escalate to administrator-level actions by hijacking admin sessions during preview of malicious posts.
Affected Products
- Image Photo Gallery Final Tiles Grid WordPress plugin
- All versions before 3.6.14
- WordPress sites allowing contributor-level user registration
Discovery Timeline
- 2026-10-08 - CVE-2026-104646 published to NVD
- 2026-10-08 - Last updated in NVD database
Technical Details for CVE-2026-104646
Vulnerability Analysis
The vulnerability is classified under [CWE-79] as Improper Neutralization of Input During Web Page Generation. The plugin accepts gallery configuration parameters via its shortcode and injects those values directly into an inline <script> block. Because the output is rendered inside a JavaScript context, standard HTML escaping would be insufficient, and the plugin applies no effective sanitisation at all.
An attacker with a contributor account can craft a post containing the vulnerable shortcode with malicious configuration overrides. When an administrator previews the pending post, the attacker-controlled JavaScript runs with the administrator's privileges. This enables account takeover, plugin installation, or privilege escalation to full site compromise.
Root Cause
The root cause is missing output encoding on shortcode-supplied configuration attributes before they are concatenated into inline JavaScript. The plugin trusts shortcode input from any authenticated author, despite WordPress contributor accounts being a low-trust role.
Attack Vector
Exploitation requires an authenticated contributor-level account and user interaction from a higher-privileged viewer. The attacker submits a draft post containing the Final Tiles Grid shortcode with crafted configuration values that break out of the inline script context. When an editor or administrator previews the submission to approve it, the payload executes in their browser session. See the WPScan Vulnerability Report for technical details.
Detection Methods for CVE-2026-104646
Indicators of Compromise
- Draft or pending posts authored by contributor accounts containing [FinalTilesGallery] shortcodes with unusual configuration attributes
- Inline <script> blocks in rendered gallery output containing quote characters, event handlers, or external script references
- Unexpected administrator account creation, plugin installation, or settings modification following a post preview action
Detection Strategies
- Review all posts and revisions containing the Final Tiles Grid shortcode for suspicious attribute values
- Audit WordPress user roles and recently registered contributor accounts for abnormal posting patterns
- Inspect web server access logs for preview=true requests from administrator sessions correlated with contributor-authored drafts
Monitoring Recommendations
- Monitor WordPress audit logs for role changes, plugin installations, and option modifications originating from admin sessions shortly after post previews
- Alert on contributor accounts creating posts that embed shortcodes with HTML special characters in attribute values
- Deploy a web application firewall rule to flag shortcode attributes containing script delimiters or JavaScript event handlers
How to Mitigate CVE-2026-104646
Immediate Actions Required
- Update the Image Photo Gallery Final Tiles Grid plugin to version 3.6.14 or later
- Audit all contributor-level accounts and remove any that are unrecognised or inactive
- Review pending and draft posts for malicious shortcode usage before previewing in an administrator session
Patch Information
The vendor addressed the issue in version 3.6.14 of the Image Photo Gallery Final Tiles Grid WordPress plugin. Site administrators should upgrade through the WordPress plugin dashboard or by downloading the fixed release. Refer to the WPScan advisory for additional context.
Workarounds
- Deactivate the Image Photo Gallery Final Tiles Grid plugin until the patched version can be applied
- Restrict contributor-level registration and require editor review in an isolated browser profile without administrator cookies
- Apply a Content Security Policy that disallows inline script execution to reduce XSS impact across the site
# WP-CLI commands to update the plugin and audit contributor accounts
wp plugin update final-tiles-grid-gallery-lite --version=3.6.14
wp user list --role=contributor --fields=ID,user_login,user_registered,user_email
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

