# Divi Forms Styler <= 4.1.0 - Unauthenticated Arbitrary Shortcode Execution via Submitted Form Field Values

- **ID:** WPSEC-2026-2160
- **Plugin:** CF7 Mate – Contact Form 7 Styler, Multi-Step Forms & Conditional Logic (`cf7-styler-for-divi`), https://wordpress.org/plugins/cf7-styler-for-divi/
- **Affected versions:** all versions before 4.1.1
- **Fixed in:** 4.1.1 (Update to 4.1.1 or later.)
- **Severity:** High 7.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-30)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/cf7-styler-for-divi
- **Fix released:** 2026-10-29
- **Published:** 2026-10-30
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2160/

## Description

The CF7 Mate plugin for WordPress is vulnerable to Arbitrary Shortcode Execution via submitted form field values in all versions up to, and including, 4.1.0, due to the Grid layout feature (enabled by default) running do_shortcode() over the complete rendered Contact Form 7 form markup, and the plugin's form-tag processors parsing that markup, without encoding the square brackets in submitted values that Contact Form 7 writes back into the form after a failed non-AJAX submission. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes, from this or any other active plugin, by entering them into a form field and submitting the form so that it is redisplayed with validation errors.

## References

- https://wpsec.com/vuln/WPSEC-2026-2160/
- https://plugins.svn.wordpress.org/cf7-styler-for-divi/tags/4.1.1/
- https://wordpress.org/plugins/cf7-styler-for-divi/

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

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.
