CVE-2025-47632

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the Awesome 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 versions up to 1.0 of the plugin. WordPress sites using the vulnerable plugin are at risk of having their users' sessions hijacked or being redirected to malicious sites.

💻 Affected Systems

Products:
  • WordPress Awesome Gallery plugin
Versions: All versions up to and including 1.0
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the Awesome Gallery plugin installed and activated.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator credentials, take over the WordPress site, install backdoors, deface the site, or redirect users to phishing/malware sites.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies, perform actions on behalf of authenticated users, or redirect users to malicious content.

🟢

If Mitigated

With proper input validation and output encoding, the malicious scripts would be rendered harmless as text rather than executable code.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Stored XSS vulnerabilities are commonly exploited in WordPress plugins. Attackers typically need some level of access to inject the payload.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.1 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/awesome-gallery/vulnerability/wordpress-awesome-gallery-1-0-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 Awesome Gallery and click 'Update Now' if available. 4. If no update is available, deactivate and delete the plugin, then install the latest version from WordPress repository.

🔧 Temporary Workarounds

Disable Awesome Gallery plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate awesome-gallery

Apply Content Security Policy

all

Implement CSP headers to restrict script execution

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

  • Disable or remove the Awesome Gallery plugin entirely
  • Implement web application firewall (WAF) rules to block XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for Awesome Gallery version 1.0 or earlier

Check Version:

wp plugin list --name=awesome-gallery --field=version

Verify Fix Applied:

Verify Awesome Gallery plugin version is 1.0.1 or later in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to gallery-related endpoints
  • JavaScript payloads in form submissions
  • Multiple failed injection attempts

Network Indicators:

  • Suspicious script tags in HTTP requests to gallery endpoints
  • External script loading from gallery pages

SIEM Query:

source="wordpress.log" AND ("awesome-gallery" OR "gallery") AND ("<script>" OR "javascript:" OR "onerror=" OR "onload=")

🔗 References

📤 Share & Export