# Forminator Forms – Contact Form, Payment Form & Custom Form Builder <= 1.58.4 - Unauthenticated Stored Cross-Site Scripting via Rich-Text Textarea Draft Values and Merge Tags

- **ID:** WPSEC-2026-3337
- **Plugin:** Forminator Forms – Contact Form, Payment Form & Custom Form Builder (`forminator`), https://wordpress.org/plugins/forminator/
- **Affected versions:** all versions before 1.58.5
- **Fixed in:** 1.58.5 (Update to 1.58.5 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/forminator
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3337/

## Description

The Forminator Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via saved draft values of rich-text textarea fields in all versions up to, and including, 1.58.4. This is due to draft content being rendered inside a <textarea> element with wp_kses_post() rather than textarea escaping, a rich-text sanitizer that still allowed textarea elements and reserved forminator- classes, and front-end merge-tag rendering that inserted resolved values as HTML without sanitization when the form had no HTML field. This makes it possible for unauthenticated attackers to save a draft whose content breaks out of the textarea and injects merge-tag markup that resolves to attacker-supplied HTML, executing arbitrary web scripts in the browser of a user who opens the draft link.

## References

- https://wpsec.com/vuln/WPSEC-2026-3337/
- https://plugins.svn.wordpress.org/forminator/tags/1.58.5/
- https://wordpress.org/plugins/forminator/

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

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.
