CVE-2026-2052
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.
Affected WordPress components
-
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets Plugin · widget-optionsUp to and including 4.2.2; Up to and including 5.3.2View on WordPress.org
A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.
Affected products and versions
- marketingfire Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets — Up to and including 4.2.2
- Marketing Fire, LLC Widget Options - Extended — Up to and including 5.3.2
References
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/widget-options/trunk/includes/extras.php#L495
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/widget-options/trunk/includes/extras.php#L534
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/widget-options/trunk/includes/widgets/gutenberg/gutenberg-toolbar.php#L843
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset/3481338/
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset/3514411/
- www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/68023557-fc92-4cf6-96b4-405ff5a5fd5a?source=cve
- nvd.nist.gov Official NVD record