CVE-2026-2052

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

8.8 high EPSS 1.21%

Published 2 May 2026 Updated 4 May 2026 CNA: Wordfence

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.

Severity (CVSS)

8.8 high CVSS 3.1 from Wordfence (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 68.3% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 4 May 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-94 Improper Control of Generation of Code

Affected products

As the CNA lists them.

ProductVersions
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets
affected up to and including 4.2.2
Other versions: unaffected
Widget Options - Extended
affected up to and including 5.3.2
Other versions: unaffected

Is my server affected?

This CVE is in Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets of marketingfire, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Other references

Source: the record CVE-2026-2052 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.