# SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz <= 2.14.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Payment Block Subscription Attributes

- **ID:** WPSEC-2026-3888
- **Plugin:** SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz (`sureforms`), https://wordpress.org/plugins/sureforms/
- **Affected versions:** from 2.0.0 before 2.14.2
- **Fixed in:** 2.14.2 (Update to 2.14.2 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/sureforms
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3888/

## Description

The SureForms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the srfm/payment block's subscriptionPlan attributes ('interval' and 'billingCycles') in all versions from 2.0.0 up to, and including, 2.14.1. This is due to insufficient input sanitization and output escaping: an unknown interval value and a non-numeric billing cycle value were placed unchanged into the variable-amount message template, which is stored in a data attribute, and the front-end payment script wrote the decoded template into the page with innerHTML. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the Payments feature to be enabled and a payment method to be connected.

## References

- https://wpsec.com/vuln/WPSEC-2026-3888/
- https://plugins.svn.wordpress.org/sureforms/tags/2.14.2/
- https://wordpress.org/plugins/sureforms/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3888/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
