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)
- Affected
- from 2.0.0 before 2.14.2
- Remediation
- Update to 2.14.2 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-25
- Attack surface
- SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz on WPSec AttackSurface
- Fix released
- Published
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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS