CVE-2026-126342: WPForms <= 2.0.4 - Unauthenticated Stored Cross-Site Scripting via Multiple Choice 'Other' Option Value on Payment Forms

Published Nov 26, 2026
·
Updated

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 sanitizetextfield(), which preserves a space-separated pseudo-tag (e.g. '< i class="wpforms-single-payment-tooltip" data-tooltip-content="&lt;img src=x onerror=...&gt;">x< /i>') because striptags() ignores a '<' followed by whitespace; on the admin Payments entry page the value is output through wpkses() 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.

Affected Software

1 affected component
wordpress/wpforms-lite<=2.0.4

Event History

Nov 26, 2026
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Sites using WPForms Lite 2.0.4 or earlier are affected when they use payment forms containing a Multiple Choice field with an “Other” option. An unauthenticated attacker can submit the malicious value, but the payload executes when a privileged user, such as an administrator, opens the corresponding entry in WPForms > Payments.

2

Does exploitation require an account or user interaction?

No attacker account or prior privileges are required. The attacker needs to submit a crafted value through an affected payment form; execution occurs automatically when a privileged user views the payment-entry details page, without requiring a hover action.

3

What component causes the submitted value to become executable script?

The submitted value can survive sanitize_text_field() by using a pseudo-tag with whitespace after the opening angle bracket. On the payment details page, wp_kses() normalizes it into an allowed i element, and the bundled Tooltipster configuration renders the data-tooltip-content attribute as HTML.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203