CVE-2025-58665

5.9 MEDIUM

📋 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

Products:
  • Form Generator for WordPress
Versions: n/a through 1.5.2
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All installations with vulnerable 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

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.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

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

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/form-generator-powered-by-jotform/vulnerability/wordpress-form-generator-for-wordpress-plugin-1-5-2-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 '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

WordPress

Temporarily 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")

🔗 References

📤 Share & Export