CVE-2025-47677

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the GT3 Photo Gallery WordPress plugin allows attackers to inject malicious scripts into web pages that are then executed when other users view those pages. The vulnerability affects all WordPress sites using the GT3 Photo Gallery plugin versions up to 2.7.7.25. Attackers can steal session cookies, redirect users to malicious sites, or perform actions on behalf of authenticated users.

💻 Affected Systems

Products:
  • Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery WordPress plugin
Versions: All versions up to and including 2.7.7.25
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the plugin's input handling during web page generation. All WordPress installations with the vulnerable plugin version are affected regardless of configuration.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator session cookies, take over WordPress sites, install backdoors, deface websites, or redirect visitors to malicious sites that distribute malware.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies, potentially compromising user accounts and performing unauthorized actions within the WordPress dashboard.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before being stored or displayed to users.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW

Stored XSS vulnerabilities typically require some level of user interaction or content submission capability, but once exploited, the payload persists and affects all subsequent visitors.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.7.7.26 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/gt3-photo-video-gallery/vulnerability/wordpress-photo-gallery-gt3-image-gallery-gutenberg-block-gallery-2-7-7-25-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin dashboard. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery'. 4. Click 'Update Now' if update is available. 5. Alternatively, download version 2.7.7.26+ from WordPress repository and manually update.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the GT3 Photo Gallery plugin until patched

wp plugin deactivate gt3-photo-video-gallery

Implement Content Security Policy

all

Add CSP headers to restrict script execution sources

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to nginx config: add_header Content-Security-Policy "default-src 'self'; script-src 'self'";

🧯 If You Can't Patch

  • Remove the GT3 Photo Gallery plugin entirely and use alternative gallery solutions
  • Implement web application firewall (WAF) rules to block XSS payload patterns

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin dashboard → Plugins → Installed Plugins for GT3 Photo Gallery version. If version is 2.7.7.25 or lower, you are vulnerable.

Check Version:

wp plugin get gt3-photo-video-gallery --field=version

Verify Fix Applied:

After updating, verify plugin version shows 2.7.7.26 or higher in WordPress plugins list.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to gallery-related endpoints with script tags or JavaScript payloads
  • Multiple failed XSS attempts in web server logs

Network Indicators:

  • HTTP requests containing <script> tags or JavaScript code in gallery-related parameters
  • Unexpected outbound connections from user browsers after visiting gallery pages

SIEM Query:

source="web_server_logs" AND (uri_path="*gallery*" OR uri_path="*gt3*") AND (http_method="POST" OR http_method="PUT") AND (message="*<script>*" OR message="*javascript:*" OR message="*onload=*" OR message="*onerror=*")

🔗 References

📤 Share & Export