# Blocksy Companion <= 2.1.63 - Unauthenticated Arbitrary Shortcode Execution via Search Query

- **ID:** WPSEC-2026-4657
- **Plugin:** Blocksy Companion (`blocksy-companion`), https://wordpress.org/plugins/blocksy-companion/
- **Affected versions:** all versions before 2.1.64
- **Fixed in:** 2.1.64 (Update to 2.1.64 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/blocksy-companion
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4657/

## Description

The Blocksy Companion plugin for WordPress is vulnerable to arbitrary shortcode execution via the search query ('s' parameter) in all versions up to, and including, 2.1.63, due to the Dynamic Data block inserting the search term into its 'Search Results for' archive title without neutralizing shortcode brackets. When the block's output is later processed for shortcodes, for example when the block sits in a block widget, the shortcode in the search term runs. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes by putting them in a search URL on sites that show a Dynamic Data block with the Archive Title source on search results pages.

## References

- https://wpsec.com/vuln/WPSEC-2026-4657/
- https://plugins.svn.wordpress.org/blocksy-companion/tags/2.1.64/
- https://wordpress.org/plugins/blocksy-companion/

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

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.
