# weForms – Easy Drag & Drop Contact Form Builder For WordPress <= 1.6.30 - Unauthenticated Arbitrary Shortcode Execution via 'success_message' Parameter and Prefilled Field Values

- **ID:** WPSEC-2026-4568
- **Plugin:** weForms – Easy Drag & Drop Contact Form Builder For WordPress (`weforms`), https://wordpress.org/plugins/weforms/
- **Affected versions:** from 1.2.0 before 1.6.31
- **Fixed in:** 1.6.31 (Update to 1.6.31 or later.)
- **Severity:** Medium 5.6 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/weforms
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4568/

## Description

The weForms plugin for WordPress is vulnerable to arbitrary shortcode execution via the 'success_message' query parameter and dynamically prefilled field values in all versions up to, and including, 1.6.30, due to the form preview/share page inserting the form output, which includes request text that keeps square brackets, into the post content before WordPress runs its shortcode pass. This makes it possible for unauthenticated attackers who know a form's share link (sharing must be enabled for the form) to execute arbitrary shortcodes. Users with the edit_posts capability (Contributor+) can do the same through the form preview page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4568/
- https://plugins.svn.wordpress.org/weforms/tags/1.6.31/
- https://wordpress.org/plugins/weforms/

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

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.
