Reported vulnerability
Widget Options <= 4.2.2 - Authenticated (Contributor+) Remote Code Execution via Display Logic
Published 1 May 2026
Updated 2 May 2026
CVE-2026-2052
Compare your installed software with the affected versions below. Follow the source’s remediation guidance and test an available update after taking a backup. A database entry describes a reported issue; it does not establish whether a particular website has been compromised.
Does this affect my version?
Check your installed version against this advisory. This compares the report’s version ranges and does not scan your website.
Wordfence advisory
high · CVSS 8.8The 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.
Severity vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Widget Options - Extended
- Software
- plugin · extended-widget-options
- Affected versions
- Start version unspecified, through 5.3.2
- Fix availability
- Fix available
- Fixed versions
- 5.3.3
Recommended action
Update to version 5.3.3, or a newer patched version
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets
- Software
- plugin · widget-options
- Affected versions
- Start version unspecified, through 4.2.2
- Fix availability
- Fix available
- Fixed versions
- 4.2.3
Recommended action
Update to version 4.2.3, or a newer patched version
Further references (1)
Data sources and licences
Copyright 2012-2026 Defiant Inc.
Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.
Read licence termsCopyright 1999-2026 The MITRE Corporation
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
Read licence termsSource: Wordfence
Need help fixing this issue?
Get help checking your site, applying an available update and resolving any problems after updating.
Get help with this issueQuestions about this vulnerability
How do I check which product and version this report affects?
This report covers more than one product. Choose your plugin, theme or WordPress core in the version checker, then enter its installed version. Each product has its own affected ranges and fix details in the report above.
Which update should I install?
Find your exact product in the report and read its fixed versions and recommended action. Fix details for one product do not apply to every product covered by this advisory. Follow the linked source when no fixed version is specified.
Does an affected version mean my website has been hacked?
An affected version means the installed release matches a vulnerability described in this report. It does not show whether anyone has exploited it on your website. The checker compares version numbers with stored reports; it does not inspect your website.
Does a version outside these ranges mean my website is secure?
A version outside the reported ranges is not listed as affected by this particular issue. Other vulnerabilities, missing information or a previous compromise still need separate checks. Review other reports for your product and keep your website maintained.
Other reports for the same product
These reports cover at least one of the same plugins, themes or WordPress core. Check each report’s affected versions separately.
- Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets <= 4.2.3 - Authenticated (Contributor+) Remote Code ExecutionUpdated 25 Jun 2026
- Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets <= 4.1.3 - Authenticated (Contributor+) Remote Code ExecutionUpdated 14 Apr 2026
- Widget Options – The #1 WordPress Widget & Block Control Plugin <= 4.1.2 - Authenticated (Contributor+) Stored Cross-Site ScriptingUpdated 25 Oct 2025
- Widget Options - Extended <= 5.2.1 - Authenticated (Contributor+) Stored Cross-Site ScriptingUpdated 23 Sept 2025
- Widget Options <= 4.1.0 - Authenticated (Contributor+) Remote Code ExecutionUpdated 19 Feb 2025