CVE-2025-58220

6.5 MEDIUM

📋 TL;DR

This DOM-based cross-site scripting vulnerability in the Card Elements for WPBakery WordPress plugin allows attackers to inject malicious scripts into web pages viewed by other users. It affects WordPress sites using vulnerable versions of this plugin, potentially compromising user sessions and data.

💻 Affected Systems

Products:
  • Card Elements for WPBakery WordPress plugin
Versions: All versions up to and including 1.0.8
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with WPBakery Page Builder installed and the vulnerable plugin 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 could steal administrator credentials, deface websites, redirect users to malicious sites, or install backdoors for persistent access.

🟠

Likely Case

Session hijacking, cookie theft, or credential harvesting from users visiting compromised pages.

🟢

If Mitigated

Limited impact with proper content security policies and user awareness training.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

DOM-based XSS requires specific user interaction or page conditions to trigger.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 1.0.8

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/card-elements-for-wpbakery/vulnerability/wordpress-card-elements-for-wpbakery-plugin-1-0-8-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 'Card Elements for WPBakery'. 4. Click 'Update Now' if update available. 5. If no update, deactivate and remove plugin, then install latest version from WordPress repository.

🔧 Temporary Workarounds

Content Security Policy Implementation

all

Implement strict CSP headers to prevent execution of inline scripts and unauthorized script sources.

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to wp-config.php: header("Content-Security-Policy: default-src 'self'");

🧯 If You Can't Patch

  • Disable or remove the Card Elements for WPBakery plugin immediately.
  • Implement web application firewall rules to block XSS payload patterns.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'Card Elements for WPBakery' version 1.0.8 or earlier.

Check Version:

wp plugin list --name='card-elements-for-wpbakery' --field=version

Verify Fix Applied:

Confirm plugin version is higher than 1.0.8 in WordPress admin plugins list.

📡 Detection & Monitoring

Log Indicators:

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

Network Indicators:

  • HTTP requests containing <script> tags or JavaScript code to plugin-specific URLs

SIEM Query:

source="web_logs" AND ("card-elements" OR "wpbakery") AND ("<script>" OR "javascript:" OR "onerror=" OR "onload=")

🔗 References

📤 Share & Export