CVE-2025-22758

6.5 MEDIUM

📋 TL;DR

This DOM-based Cross-Site Scripting (XSS) vulnerability in Elementor AI Addons for WordPress allows attackers to inject malicious scripts into web pages viewed by other users. The vulnerability affects WordPress sites using the Elementor AI Addons plugin. Attackers can potentially steal session cookies, redirect users to malicious sites, or perform actions on behalf of authenticated users.

💻 Affected Systems

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

⚠️ 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 steal administrator session cookies, gain full control of the WordPress site, install backdoors, deface the site, or steal sensitive user data.

🟠

Likely Case

Attackers steal user session cookies, redirect visitors to phishing sites, or perform limited actions within the context of the vulnerable page.

🟢

If Mitigated

With proper Content Security Policy (CSP) headers and input validation, the impact is reduced to minimal or prevented entirely.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

DOM-based XSS typically requires user interaction but can be exploited through crafted links or forms.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.2.2 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/ai-addons-for-elementor/vulnerability/wordpress-elementor-ai-addons-plugin-2-2-1-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Go to Plugins → Installed Plugins. 3. Find 'Elementor AI Addons'. 4. Click 'Update Now' if available. 5. If no update appears, download version 2.2.2+ from WordPress.org and manually update.

🔧 Temporary Workarounds

Disable Elementor AI Addons Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate ai-addons-for-elementor

Implement Content Security Policy

all

Add CSP headers to prevent script execution from untrusted sources

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

🧯 If You Can't Patch

  • Disable the Elementor AI Addons plugin immediately
  • Implement web application firewall (WAF) rules to block XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'Elementor AI Addons' version 2.2.1 or earlier

Check Version:

wp plugin get ai-addons-for-elementor --field=version

Verify Fix Applied:

Verify plugin version is 2.2.2 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

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

Network Indicators:

  • HTTP requests containing <script>, javascript:, or encoded XSS payloads

SIEM Query:

source="web_server_logs" AND ("<script>" OR "javascript:" OR "onload=" OR "onerror=")

🔗 References

📤 Share & Export