Widget Logic Security & Risk Analysis

wordpress.org/plugins/widget-logic

Widget Logic lets you control on which pages widgets appear using WP's conditional tags.

100K active installs v6.0.9 PHP 5.4+ WP 3.0+ Updated Jan 15, 2026
blocksconditional-tagsgutenberg-widgetssidebarwidget
95
A · Safe
CVEs total2
Unpatched0
Last CVEJun 9, 2025
Download
Safety Verdict

Is Widget Logic Safe to Use in 2026?

Generally Safe

Score 95/100

Widget Logic has a strong security track record. Known vulnerabilities have been patched promptly.

2 known CVEsLast CVE: Jun 9, 2025Updated 2mo ago
Risk Assessment

The widget-logic plugin v6.0.9 exhibits a generally strong security posture based on the static analysis. The absence of AJAX handlers, REST API routes, shortcodes, and cron events with unprotected entry points significantly reduces the attack surface. The code also demonstrates good practices with 100% of SQL queries using prepared statements and a high percentage of output being properly escaped. The presence of nonce and capability checks further bolsters its defenses.

However, a history of two high-severity vulnerabilities, specifically Code Injection and Cross-Site Request Forgery, presents a notable concern. While there are currently no unpatched CVEs, the recurring nature of these vulnerability types in the past suggests potential areas for continued vigilance. The taint analysis, while showing no critical or high severity flows, analyzed a very small number of flows, which limits the scope of this assessment. File operations are present, and while not flagged as a concern in this analysis, they warrant attention if they involve untrusted input.

In conclusion, widget-logic v6.0.9 has made significant strides in secure coding practices, with a minimal attack surface and good implementation of core security features. Nevertheless, its past vulnerability history, particularly regarding code injection and CSRF, necessitates ongoing monitoring and awareness. The low number of taint flows analyzed also means that the absence of identified issues in this area might not be definitive.

Key Concerns

  • History of high severity vulnerabilities
  • Two high severity vulnerabilities
  • File operations present
Vulnerabilities
2

Widget Logic Security Vulnerabilities

CVEs by Year

1 CVE in 2019
2019
1 CVE in 2025
2025
Patched Has unpatched

Severity Breakdown

High
2

2 total CVEs

CVE-2025-32222high · 8.8Improper Control of Generation of Code ('Code Injection')

Widget Logic <= 6.0.5 - Authenticated (Contributor+) Remote Code Execution

Jun 9, 2025 Patched in 6.0.6 (47d)
CVE-2019-12826high · 8.8Cross-Site Request Forgery (CSRF)

Widget Logic < 5.10.2 - Cross-Site Request Forgery

Jul 1, 2019 Patched in 5.10.2 (1667d)
Code Analysis
Analyzed Mar 16, 2026

Widget Logic Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
5
74 escaped
Nonce Checks
5
Capability Checks
5
File Operations
2
External Requests
0
Bundled Libraries
0

Output Escaping

94% escaped79 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
widget_logic_extra_control (widget\admin.php:268)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Widget Logic Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 21
actioninitblock\index.php:10
actionenqueue_block_assetsblock\index.php:32
actionwp_loadedblock\index.php:53
filterrest_pre_dispatchblock\index.php:81
filterrender_blockblock\index.php:93
actioninitblock_widget\index.php:10
actionenqueue_block_assetsblock_widget\index.php:37
filtersidebars_widgetswidget\config.php:7
actioninitwidget\init.php:8
actiondynamic_sidebarwidget\init.php:73
actioncustomize_preview_initwidget\init.php:76
actionwp_enqueue_scriptswidget.php:97
actionwidgets_initwidget.php:102
actionadmin_menuWidgetLogicAdminConfig.php:23
actionadmin_initWidgetLogicAdminConfig.php:26
filterin_widget_formwidget_logic.php:42
filterwidget_update_callbackwidget_logic.php:43
actionsidebar_admin_setupwidget_logic.php:45
actionsidebar_admin_pagewidget_logic.php:47
actionwidgets_initwidget_logic.php:49
filterdynamic_sidebar_paramswidget_logic.php:69
Maintenance & Trust

Widget Logic Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 15, 2026
PHP min version5.4
Downloads3.2M

Community Trust

Rating88/100
Number of ratings188
Active installs100K
Developer Profile

Widget Logic Developer Profile

Widgetlogic.org

1 plugin · 100K total installs

76
trust score
Avg Security Score
95/100
Avg Patch Time
857 days
View full developer profile
Detection Fingerprints

How We Detect Widget Logic

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/widget-logic/block/js/widget-logic.js/wp-content/plugins/widget-logic/block/css/widget-logic.css/wp-content/plugins/widget-logic/block_widget/js/widget.js/wp-content/plugins/widget-logic/block_widget/css/widget.css
Script Paths
/wp-content/plugins/widget-logic/block/js/widget-logic.js/wp-content/plugins/widget-logic/block_widget/js/widget.js
Version Parameters
widget-logic/style.css?ver=widget-logic/script.js?ver=

HTML / DOM Fingerprints

CSS Classes
widget-logic-settingswidget-logic-wrap
HTML Comments
widget-logic: STARTwidget-logic: END
Data Attributes
data-widget-logic-active
JS Globals
widget_logic_optionswidget_logic_customizer_display_scriptmyPluginBlockImageUrl
REST Endpoints
/wp/v2/block-renderer
FAQ

Frequently Asked Questions about Widget Logic