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-107178 Overview
CVE-2026-107178 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Image Photo Gallery Final Tiles Grid WordPress plugin. Versions prior to 3.6.16 fail to escape gallery lightbox configuration values before printing them into an inline script on pages that embed the gallery. Authenticated users with contributor-level access or above can inject JavaScript that executes in the browser of any visitor viewing the gallery, including administrators. Successful exploitation enables session theft, administrative action hijacking, and persistent site compromise.
Critical Impact
An attacker with contributor privileges can store JavaScript that runs in an administrator's browser session, enabling full WordPress site takeover through administrative action hijacking.
Affected Products
- Image Photo Gallery Final Tiles Grid WordPress plugin versions prior to 3.6.16
- WordPress sites allowing contributor-level or higher account registration
- WordPress pages embedding galleries created with the affected plugin
Discovery Timeline
- 2026-10-14 - CVE-2026-107178 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-107178
Vulnerability Analysis
The vulnerability resides in how the plugin renders gallery lightbox configuration values. When a user creates or edits a gallery, lightbox options are stored and later written into an inline <script> block on every page that embeds the gallery. The plugin concatenates these user-controlled values directly into JavaScript context without applying escaping routines such as esc_js() or wp_json_encode().
Because the injected payload executes in the browser of every viewer, including administrators who preview or review contributor submissions, an attacker can issue privileged requests through the victim's session. Typical post-exploitation actions include creating new administrator accounts, modifying plugin files, or installing malicious plugins through the WordPress admin REST interface.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. Gallery lightbox configuration values flow from the plugin's settings storage into an inline script context without JavaScript-specific escaping. WordPress provides esc_js() and wp_json_encode() for this exact use case, but neither is applied in the affected code path.
Attack Vector
Exploitation requires an authenticated account with contributor-level privileges or higher. The attacker configures a gallery with a malicious lightbox value containing JavaScript syntax that breaks out of the string literal in the generated inline script. When any user, including an administrator, loads a page embedding that gallery, the payload executes in their browser under the site's origin.
The vulnerability requires user interaction (UI:R) because a victim must visit the page hosting the embedded gallery. See the WPScan Vulnerability Report for technical details.
Detection Methods for CVE-2026-107178
Indicators of Compromise
- Unexpected inline <script> content on pages embedding Final Tiles Grid galleries, particularly containing </script>, onerror=, or encoded JavaScript inside lightbox option strings.
- New WordPress administrator accounts created shortly after contributor-authored content was published or previewed.
- Outbound requests from administrator browsers to unfamiliar domains that correlate with gallery page views.
- Modified wp_options rows or plugin files that cannot be attributed to legitimate maintenance activity.
Detection Strategies
- Audit stored gallery configurations in the WordPress database for lightbox fields containing script tags, event handlers, or JavaScript keywords such as fetch(, document.cookie, or eval(.
- Enable WordPress audit logging to track gallery creation and modification events performed by contributor and author roles.
- Deploy a Content Security Policy (CSP) in report-only mode to surface inline script violations originating from gallery pages.
Monitoring Recommendations
- Monitor administrative REST API calls (/wp-json/wp/v2/users, /wp-admin/admin-ajax.php) immediately following administrator access to pages containing contributor-authored galleries.
- Alert on changes to WordPress user roles, plugin installations, and theme file modifications performed within short windows after gallery page views.
- Correlate web server access logs with WordPress audit events to identify sessions where administrators viewed suspect gallery content.
How to Mitigate CVE-2026-107178
Immediate Actions Required
- Upgrade the Image Photo Gallery Final Tiles Grid plugin to version 3.6.16 or later on all WordPress installations.
- Review all existing galleries for malicious lightbox configuration values and remove any entries containing JavaScript syntax.
- Audit contributor, author, and editor accounts, revoking access for inactive or unverified users.
- Rotate administrator credentials and invalidate active sessions if indicators of compromise are present.
Patch Information
The vendor fixed the vulnerability in Image Photo Gallery Final Tiles Grid version 3.6.16. Site operators should apply the update through the WordPress plugin dashboard or by replacing plugin files manually. Confirm the installed version after update to ensure the patched release is active.
Workarounds
- Deactivate the Image Photo Gallery Final Tiles Grid plugin until the patched version is applied.
- Restrict gallery creation to trusted roles by removing contributor and author permissions to the plugin's settings via a role-management plugin.
- Enforce a strict Content Security Policy that disallows inline scripts, which blocks the stored payload from executing even if present.
- Place the WordPress admin area behind IP allowlisting or multi-factor authentication to reduce the impact of session hijacking.
# Update the plugin via WP-CLI
wp plugin update final-tiles-grid-gallery-lite --version=3.6.16
wp plugin list --name=final-tiles-grid-gallery-lite --fields=name,status,version
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

