Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets, Widget Options - Extended: Code execution
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets, Widget Options - Extended is affected by code execution. Exploitation requires at least contributor-level access. Successful exploitation can run attacker-controlled code in the WordPress hosting account. The published affected range is <= 4.2.2, <= 5.3.2.
- Component
- Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets, Widget Options - Extended
- Plugin slug
widget-options- Affected
- <= 4.2.2, <= 5.3.2
- Safe version
> 4.2.2, > 5.3.2- Published
- May 02, 2026
This CVE was published May 02, 2026 and is one of 8 known issues for this plugin.
Update, patch or deactivate.
Update Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets, Widget Options - Extended to a release outside the affected range, or disable and remove it until a fixed version is available.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.2.2 via the Display Logic feature. This is due to the plugin using eval() on user-supplied Display Logic expressions with an insufficient blocklist/allowlist that can be bypassed using array_map with string concatenation, combined with a lack of authorization enforcement on the extended_widget_opts_block attribute. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute code on the server. The vulnerability was partially patched in version 4.2.0.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary and upstream sources
- NVD record for CVE-2026-2052
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- Wordfence advisory wordfence.com