User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Security & Risk Analysis

wordpress.org/plugins/user-role

Powerful user role management plugin for WordPress websites. Easily create, customize, and manage user roles and capabilities without writing code.

3K active installs v1.7.2 PHP + WP 5.6+ Updated Dec 3, 2025
capabilitycapability-editorcapability-managerchange-capabilitiesrole-manager
99
A · Safe
CVEs total2
Unpatched0
Last CVEMar 13, 2023
Safety Verdict

Is User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Safe to Use in 2026?

Generally Safe

Score 99/100

User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

2 known CVEsLast CVE: Mar 13, 2023Updated 5mo ago
Risk Assessment

The user-role plugin version 1.7.2 exhibits a generally strong security posture based on the static analysis. The plugin demonstrates excellent practices regarding output escaping, with 97% of outputs properly escaped, significantly mitigating the risk of cross-site scripting vulnerabilities. Furthermore, the absence of any identified flows with unsanitized paths and zero critical or high severity taint analysis results indicate a well-handled input validation and sanitization process. The plugin also effectively utilizes nonces and capability checks, with a substantial number of checks present, which is a positive sign for preventing unauthorized actions.

However, the plugin's vulnerability history presents a notable concern. With two previously disclosed CVEs, one high and one medium severity, it suggests that the plugin has had past security weaknesses that required patching. While there are currently no unpatched vulnerabilities, this history indicates a potential for recurring security issues. The types of past vulnerabilities, CSRF and XSS, align with common web application attack vectors, underscoring the importance of robust ongoing security practices.

In conclusion, the user-role plugin v1.7.2 has strengths in its current code quality, particularly in output sanitization and input validation. However, the historical vulnerability record, including a past high-severity issue, introduces a residual risk that necessitates vigilance. While the static analysis paints a positive picture for the current version, the plugin's past indicates a need for continued monitoring and prompt patching of any future disclosed vulnerabilities.

Key Concerns

  • Previous high severity vulnerability
  • Previous medium severity vulnerability
  • SQL queries not using prepared statements
Vulnerabilities
2 published

User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Security Vulnerabilities

CVEs by Year

1 CVE in 2017
2017
1 CVE in 2023
2023
Patched Has unpatched

Severity Breakdown

High
1
Medium
1

2 total CVEs

CVE-2023-0820high · 8.8Cross-Site Request Forgery (CSRF)

User Role by BestWebSoft <= 1.6.6 - Cross-Site Request Forgery to Privilege Escalation

Mar 13, 2023 Patched in 1.6.7 (316d)
CVE-2017-18566medium · 6.1Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

User Role <= 1.5.5 - Cross-Site Scripting

Apr 12, 2017 Patched in 1.5.6 (2477d)
Version History

User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Release Timeline

v1.7.2Current
v1.7.0
v1.6.9
v1.6.8
v1.6.7
v1.6.61 CVE
v1.6.51 CVE
v1.6.41 CVE
v1.6.31 CVE
v1.6.21 CVE
v1.6.11 CVE
v1.6.01 CVE
v1.5.91 CVE
v1.5.81 CVE
v1.5.71 CVE
v1.5.61 CVE
Code Analysis
Analyzed Mar 16, 2026

User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Code Analysis

Dangerous Functions
0
Raw SQL Queries
5
2 prepared
Unescaped Output
19
525 escaped
Nonce Checks
24
Capability Checks
3
File Operations
2
External Requests
6
Bundled Libraries
0

SQL Query Safety

29% prepared7 total queries

Output Escaping

97% escaped544 total outputs
Data Flows · Security
All sanitized

Data Flow Analysis

7 flows
bws_add_menu_render (bws_menu\bws_menu.php:18)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Attack Surface

Entry Points2
Unprotected0

AJAX Handlers 2

authwp_ajax_bws_submit_request_feature_actionbws_menu\class-bws-settings.php:1466
authwp_ajax_bws_submit_uninstall_reason_actionbws_menu\deactivation-form.php:433
WordPress Hooks 18
filterload_textdomain_mofilebws_menu\bws_functions.php:43
filtermce_external_pluginsbws_menu\bws_functions.php:1294
filtermce_buttonsbws_menu\bws_functions.php:1295
actionadmin_initbws_menu\bws_functions.php:1581
actionadmin_enqueue_scriptsbws_menu\bws_functions.php:1582
actionadmin_headbws_menu\bws_functions.php:1583
actionadmin_footerbws_menu\bws_functions.php:1584
actionadmin_noticesbws_menu\bws_functions.php:1586
actionwp_enqueue_scriptsbws_menu\bws_functions.php:1588
actionadmin_menuuser-role.php:789
actionnetwork_admin_menuuser-role.php:790
actionplugins_loadeduser-role.php:791
actioninituser-role.php:792
actionadmin_inituser-role.php:793
actionadmin_enqueue_scriptsuser-role.php:795
filterplugin_action_linksuser-role.php:797
filterplugin_row_metauser-role.php:798
actionadmin_noticesuser-role.php:800
Maintenance & Trust

User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 3, 2025
PHP min version
Downloads99K

Community Trust

Rating72/100
Number of ratings12
Active installs3K
Developer Profile

User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress Developer Profile

bestwebsoft

18 plugins · 207K total installs

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

How We Detect User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/user-role/css/icon.css/wp-content/plugins/user-role/css/style.css/wp-content/plugins/user-role/js/script.js
Script Paths
/wp-content/plugins/user-role/js/script.js
Version Parameters
user-role/css/icon.css?ver=user-role/css/style.css?ver=user-role/js/script.js?ver=

HTML / DOM Fingerprints

CSS Classes
srrl_iconssrrl_main_wrapbws_settings_pagesrrl_settings_tabssrrl_form_inputsrrl_role_selectsrrl_role_option
HTML Comments
© Copyright 2023 BestWebSoft ( https://support.bestwebsoft.com )
Data Attributes
data-role-iddata-role-name
JS Globals
srrl_translation
FAQ

Frequently Asked Questions about User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress