CVE-2025-58665
📋 TL;DR
This stored cross-site scripting (XSS) vulnerability in the Form Generator for WordPress plugin allows attackers to inject malicious scripts into web pages generated by the plugin. When users view pages containing these malicious 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
- Form Generator for WordPress
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Attackers could steal administrator session cookies, gain administrative access to the WordPress site, install backdoors, deface the site, or pivot to internal network resources.
Likely Case
Attackers inject malicious JavaScript to steal user session cookies, redirect users to phishing sites, or perform actions on behalf of authenticated users.
If Mitigated
With proper input validation and output encoding, malicious scripts would be neutralized before being stored or displayed to users.
🎯 Exploit Status
Exploitation requires the attacker to submit malicious input through the form generator interface, which then gets stored and executed when users view affected pages.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Version after 1.5.2
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Form Generator for WordPress'. 4. Click 'Update Now' if update is available. 5. If no update is available, deactivate and remove the plugin until a patched version is released.
🔧 Temporary Workarounds
Disable Form Generator Plugin
WordPressTemporarily disable the vulnerable plugin until a patch can be applied.
wp plugin deactivate form-generator-for-wordpress
🧯 If You Can't Patch
- Implement a web application firewall (WAF) with XSS protection rules
- Restrict access to form submission endpoints to trusted IP addresses only
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → Installed Plugins for 'Form Generator for WordPress' version 1.5.2 or earlier.
Check Version:
wp plugin get form-generator-for-wordpress --field=version
Verify Fix Applied:
Verify plugin version is higher than 1.5.2 in WordPress admin panel → Plugins → Installed Plugins.
📡 Detection & Monitoring
Log Indicators:
- Unusual form submissions with JavaScript payloads
- Multiple failed form submissions with suspicious content
Network Indicators:
- HTTP requests containing JavaScript in form parameters
- Outbound connections to suspicious domains after form submissions
SIEM Query:
source="wordpress.log" AND "form-generator" AND ("script" OR "javascript" OR "onload" OR "onerror")