Widget Options <= 4.2.2 - Authenticated (Contributor+) Remote Code Execution via Display Logic
Summary
| CVE | CVE-2026-2052 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-02 08:16:27 UTC |
| Updated | 2026-05-02 08:16:27 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-94 | CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Marketingfire | Widget Options Advanced Conditional Visibility For Gutenberg Blocks Classic Widgets | affected 4.2.2 semver | Not specified |
| CNA | Marketing Fire LLC | Widget Options - Extended | affected 5.3.2 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.wordfence.com/threat-intel/vulnerabilities/id/68023557-fc92-4cf6-96b4-405ff... | [email protected] | www.wordfence.com | |
| plugins.trac.wordpress.org/browser/widget-options/trunk/includes/extras.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset/3481338 | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/widget-options/trunk/includes/widgets/gutenberg/guten... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/widget-options/trunk/includes/extras.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset/3514411 | [email protected] | plugins.trac.wordpress.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Matthew Rollings (en)
CNA: Hung Nguyen (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-02-06T01:58:45.000Z | Vendor Notified |
| CNA | 2026-05-01T00:00:00.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.