CVE-2026-2052CWE-94

Widget Options <= 4.2.2 - Authenticated (Contributor+) Remote Code Execution via Display Logic

High · published May 2, 2026

CVSS v3.1
8.8
EPSS
1%
Percentile
55.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00774 · 55.3th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-05-02T07:46Z
EPSS history
Timeline
  • 02 MAY 07:46Z
    Widget Options <= 4.2.2 - Authenticated (Contributor+) Remote Code Execution via Display Logic
    cvelistv5