# MetForm <= 4.3.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via Widget Settings

- **ID:** WPSEC-2026-4253
- **Plugin:** MetForm – Contact Form, Survey, Quiz, Conditional Forms, Form Templates & Custom Form Builder for Elementor (`metform`), https://wordpress.org/plugins/metform/
- **Affected versions:** from 1.3.0 before 4.3.6
- **Fixed in:** 4.3.6 (Update to 4.3.6 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 High, affected versions High (as of 2026-11-30)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/metform
- **Fix released:** 2026-11-29
- **Published:** 2026-11-30
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4253/

## Description

The MetForm plugin for WordPress is vulnerable to Stored Cross-Site Scripting via form widget settings such as validation messages, validation expressions, option labels and quiz data in all versions up to, and including, 4.3.5. This is due to insufficient output escaping: the field widgets print these settings with plain wp_json_encode(), which leaves HTML special characters, ampersands (HTML entities that the form script turns back into quotes), backticks and '$' unescaped, both in the widget's raw HTML output and in the form template that is compiled into JavaScript. 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.

## References

- https://wpsec.com/vuln/WPSEC-2026-4253/
- https://plugins.svn.wordpress.org/metform/tags/4.3.6/
- https://wordpress.org/plugins/metform/

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

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.
