CVE-2025-46476

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the Awesome Wp Image Gallery WordPress plugin allows attackers to inject malicious scripts into web pages. When users view pages containing the injected scripts, the attacker can steal session cookies, redirect users, or perform actions on their behalf. All WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • Awesome Wp Image Gallery WordPress 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 vulnerable plugin active.

⚠️ 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.

🟠

Likely Case

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

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before reaching users.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Stored XSS vulnerabilities are commonly exploited. While no public PoC is mentioned, the vulnerability type is well-understood and easily weaponized.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown - plugin appears abandoned

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/awesome-wp-image-gallery/vulnerability/wordpress-awesome-wp-image-gallery-1-0-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Remove the Awesome Wp Image Gallery plugin from your WordPress installation. 2. Delete the plugin files from /wp-content/plugins/awesome-wp-image-gallery/. 3. Consider alternative image gallery plugins that are actively maintained.

🔧 Temporary Workarounds

Input Sanitization Filter

all

Add custom PHP filter to sanitize all input to the plugin

Add to theme's functions.php or custom plugin: add_filter('awesome_wp_image_gallery_input', 'wp_kses_post');

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'"
Or add to wp-config.php: header("Content-Security-Policy: default-src 'self'; script-src 'self'");

🧯 If You Can't Patch

  • Disable or remove the Awesome Wp Image Gallery plugin immediately
  • Implement web application firewall (WAF) rules to block XSS payloads targeting this plugin

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for 'Awesome Wp Image Gallery' version 1.0 or earlier

Check Version:

wp plugin list --name=awesome-wp-image-gallery --field=version (if WP-CLI installed)

Verify Fix Applied:

Verify the plugin is no longer listed in WordPress admin or check /wp-content/plugins/ directory for absence of awesome-wp-image-gallery folder

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin endpoints
  • JavaScript payloads in form submissions
  • Multiple failed XSS attempts

Network Indicators:

  • HTTP requests containing script tags or JavaScript in parameters
  • Unusual traffic to /wp-content/plugins/awesome-wp-image-gallery/

SIEM Query:

source="web_logs" AND (uri_path="/wp-content/plugins/awesome-wp-image-gallery/" OR user_agent CONTAINS "script")

🔗 References

📤 Share & Export