# Kadence Blocks — Page Builder Toolkit for Gutenberg Editor <= 3.9.1 - Unauthenticated Arbitrary Shortcode Execution via Advanced Form Field Default Parameter

- **ID:** WPSEC-2026-3312
- **Plugin:** Kadence Blocks — Page Builder Toolkit for Gutenberg Editor (`kadence-blocks`), https://wordpress.org/plugins/kadence-blocks/
- **Affected versions:** all versions before 3.9.1.1
- **Fixed in:** 3.9.1.1 (Update to 3.9.1.1 or later.)
- **Severity:** Medium 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/kadence-blocks
- **Fix released:** 2026-11-16
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3312/

## Description

The Kadence Blocks plugin for WordPress is vulnerable to arbitrary shortcode execution via the Advanced Form field 'defaultParameter' setting in all versions up to, and including, 3.9.1, due to the plugin taking a field's default value from a URL query parameter and printing it in the rendered form without neutralizing square brackets. The form's output is part of the post content, and WordPress runs do_shortcode on that content after the blocks are rendered. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes by supplying a crafted query parameter value when they load a page with an Advanced Form. Exploitation requires a published form with a field set to take its default value from a URL parameter.

## References

- https://wpsec.com/vuln/WPSEC-2026-3312/
- https://plugins.svn.wordpress.org/kadence-blocks/tags/3.9.1.1/
- https://wordpress.org/plugins/kadence-blocks/

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

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.
