CVE-2026-126342: Cross-site Scripting
Published 2026-11-26 · Updated 2026-12-01 · Source security@wordfence.com
Not known to be exploited · high severity — apply the vendor fix or mitigation in your next patch cycle.
What to do
- Check the references below for the vendor's patched release of the affected product and apply it.
- Until it is patched, do not leave the affected product reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Apply a restrictive Content-Security-Policy and mark session cookies HttpOnly to limit what an injected script can do.
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: confidentiality and integrity are rated low. A successful attack can affect components beyond the vulnerable one.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | Low | Partial loss of confidentiality. |
| Integrity | Low | Partial loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness: Cross-site Scripting
An attacker can make script run in another user's browser in the context of the affected site, allowing session theft or actions taken as that user.
Classified as CWE-79.
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.
Advisory text as published in the NVD record.
References
- Advisoryhttps://www.wordfence.com/threat-intel/vulnerabilities/id/778cae4c-f864-4f84-9f6a-3ebe0dadec36?source=cve
- Referencehttps://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/includes/fields/class-radio.php#L771
- Referencehttps://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/includes/fields/class-radio.php#L845
- Referencehttps://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/includes/fields/class-radio.php#L896
- Referencehttps://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/src/Admin/Payments/Views/Single.php#L1019
- Referencehttps://plugins.trac.wordpress.org/browser/wpforms-lite/tags/2.0.2.2/templates/admin/payments/single/field.php#L23
- Referencehttps://plugins.trac.wordpress.org/changeset/3811507/wpforms-lite/trunk/includes/fields/class-radio.php