Vulnerability Description
The WPForms (Contact Form by WPForms / wpforms-lite) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Multiple Choice field's 'Other' option value on payment forms in all versions up to, and including, 2.0.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a privileged user such as an administrator accesses the injected payment entry on the WPForms > Payments details page. The submitted value is stored via sanitize_text_field(), which preserves a space-separated pseudo-tag (e.g. '< i class="wpforms-single-payment-tooltip" data-tooltip-content="<img src=x onerror=...>">x< /i>') because strip_tags() ignores a '<' followed by whitespace; on the admin Payments entry page the value is output through wp_kses() with the 'post' allowlist, which normalizes it into a live <i> element retaining its class and data-* attributes, and the bundled Tooltipster initialization (contentAsHTML + contentCloning) then renders the attribute's HTML, executing the script on page load without any hover.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/includes/fi
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/includes/fi
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/includes/fi
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/src/Admin/P
- https://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/templates/a
- https://plugins.trac.wordpress.org/changeset/3811507/wpforms-lite/trunk/includes
- https://www.wordfence.com/threat-intel/vulnerabilities/id/778cae4c-f864-4f84-9f6
FAQ
What is CVE-2026-126342?
CVE-2026-126342 is a vulnerability with a CVSS score of 7.2 (HIGH). The WPForms (Contact Form by WPForms / wpforms-lite) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Multiple Choice field's 'Other' option value on payment forms in all vers...
How severe is CVE-2026-126342?
CVE-2026-126342 has been rated HIGH with a CVSS base score of 7.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-126342?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.