CVE-2025-24638

6.5 MEDIUM

📋 TL;DR

This DOM-based Cross-Site Scripting (XSS) vulnerability in the Create with Code WordPress plugin allows attackers to inject malicious scripts into web pages viewed by other users. It affects all WordPress sites running the plugin from initial release through version 1.4. Attackers can steal session cookies, redirect users, or perform actions on their behalf.

💻 Affected Systems

Products:
  • Create with Code WordPress Plugin
Versions: n/a through 1.4
Operating Systems: All platforms running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations using 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

Complete account takeover, data theft, or malware distribution to all site visitors through persistent XSS payloads.

🟠

Likely Case

Session hijacking, credential theft, or defacement of affected web pages for users who visit compromised pages.

🟢

If Mitigated

Limited impact if Content Security Policy (CSP) headers are properly configured and user input validation is enforced elsewhere.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

DOM-based XSS typically requires user interaction but can be weaponized through phishing or compromised pages.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.5 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/create-with-code/vulnerability/wordpress-create-with-code-plugin-1-4-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 'Create with Code' and check version. 4. If version is 1.4 or lower, update to latest version. 5. Verify update completed successfully.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate create-with-code

Implement CSP Headers

all

Add Content Security Policy headers to mitigate XSS impact

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Or configure in web server settings

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block XSS payloads
  • Enable input validation and output encoding in application code

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel → Plugins → Installed Plugins → Create with Code version

Check Version:

wp plugin get create-with-code --field=version

Verify Fix Applied:

Verify plugin version is 1.5 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin endpoints
  • JavaScript payloads in URL parameters or form submissions
  • Multiple failed XSS attempts in web server logs

Network Indicators:

  • Suspicious script tags in HTTP requests
  • Unusual redirects from plugin pages
  • External script loading from unexpected domains

SIEM Query:

source="web_server" AND ("create-with-code" OR "CVE-2025-24638") AND ("<script>" OR "javascript:" OR "onerror=" OR "onload=")

🔗 References

📤 Share & Export