CVE-2025-27291

7.1 HIGH

📋 TL;DR

This CVE describes a reflected cross-site scripting (XSS) vulnerability in the uxgallery WordPress Photo Gallery plugin. Attackers can inject malicious scripts via crafted URLs that execute when victims visit those links. WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • WordPress Photo Gallery – Image Gallery (uxgallery)
Versions: n/a through 2.0.4
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations with the vulnerable plugin versions 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 admin accounts, deface websites, or redirect users to malicious sites.

🟠

Likely Case

Attackers would typically use this to steal user session cookies or credentials through phishing links, potentially compromising individual user accounts.

🟢

If Mitigated

With proper web application firewalls and input validation, the risk is reduced to minimal impact, though the vulnerability still exists.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Reflected XSS vulnerabilities are commonly exploited and require minimal technical skill to weaponize.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.0.5 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/photo-image-gallery/vulnerability/wordpress-photo-gallery-image-gallery-plugin-2-0-4-reflected-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'WordPress Photo Gallery – Image Gallery'. 4. Click 'Update Now' if available. 5. Alternatively, download version 2.0.5+ from WordPress repository and manually update.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with XSS protection rules to block malicious payloads.

Disable Plugin

linux

Temporarily disable the vulnerable plugin until patched.

wp plugin deactivate photo-image-gallery

🧯 If You Can't Patch

  • Implement strict Content Security Policy (CSP) headers to mitigate XSS impact.
  • Use browser security features like HttpOnly cookies and SameSite attributes.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'WordPress Photo Gallery – Image Gallery' version.

Check Version:

wp plugin get photo-image-gallery --field=version

Verify Fix Applied:

Verify plugin version is 2.0.5 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

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

Network Indicators:

  • HTTP requests containing suspicious parameters with JavaScript code.
  • Traffic patterns showing users being redirected after visiting gallery pages.

SIEM Query:

source="web_logs" AND (uri="*gallery*" OR uri="*uxgallery*") AND (query="*<script>*" OR query="*javascript:*")

🔗 References

📤 Share & Export