User Role Editor Pro version 4.68

User Role Editor Pro version 4.68 was published at November 30th, 2026. It includes security fix which closes vulnerability addressed already in versions 4.67, 4.67.1: authorized user with promote_users capability could assign themselves or others roles with capabilities beyond their own. Role assignment is checked now: Users page, profile, Add New User, multisite invitation, REST API. Update immediately.
New role/user permissions auto expire by date add-on is included also.
Content view restrictions add-on code was refactored to enhance general speed.

Changes Log

Core version: 4.68

  • New: User Role Auto-Expire add-on: a role can be revoked automatically from all its users when the set expiration date and time is reached, or users can be reassigned to a fallback role instead. Turn the module on at Settings > Additional Modules (“Activate User Role Auto Expire module”), then use the new “Auto-Expire” button at the User Role Editor page toolbar: set the expiration date and time (the active site timezone is shown), select the action after expiration – revoke the current role completely or reassign users to another role – and check the summary line. Expiration rules are processed automatically by the hourly WordPress cron event. The ‘administrator’ role can not be expired and can not be used as a fallback role, so the last administrator lockout is impossible. Access to the add-on is controlled by the new ‘ure_role_auto_expire’ capability.
  • New: User Role Auto-Expire add-on: per-user role expirations. The add-on replaces the “Other Roles” section at the user profile page with the “User Role Editor – Assigned Roles & Expiration” section: the Primary Role select is synced with the top WordPress “Role” dropdown both ways, additional roles are added and removed per row, and any granted role (except ‘administrator’) can get its own expiration date and time (the active site timezone is shown) followed by a full revoke or a replacement with a selected fallback role. Expired roles are processed by the hourly ‘ure_user_role_expiration_check_event’ cron event; a user left with no roles gets the site default role automatically. A user can not set or change expirations for his own roles.
  • New: User Role Auto-Expire add-on: the “Without role” button dialog at the Users page offers an expiration for the granted role too: check “Set expiration for the new role”, pick the expiration date and time (the active site timezone is shown) and choose whether to revoke the role completely or to replace it with a fallback role when it expires. The same restrictions as everywhere else apply: the ‘administrator’ role never expires, and the fallback list offers only the roles you are allowed to grant yourself.
  • New: User Role Auto-Expire add-on: both hourly expiration jobs work in bounded batches (200 users or 15 seconds per run, whichever comes first, both filterable) and drain a large backlog through chained follow-up events every 10 seconds, so a mass role expiration can not exhaust the PHP time limit; a database-level lock prevents overlapping runs. For busy sites, consider replacing the page-load triggered WP-Cron with a real system cron: define ‘DISABLE_WP_CRON’ as true in wp-config.php and run ‘wp cron event run –due-now’ from the server crontab every minute – role revocations are then processed decoupled from visitor page loads.
  • New: User Role Auto-Expire add-on: the “Grant Roles” dialog at the Users page offers a per-role expiration too: add additional roles via the “+ Add additional role…” dropdown, check “Set expiration date” for any of them (or for the primary role), pick the expiration date and time and choose whether to revoke the role or to replace it with a fallback role when it expires. The expiration input is validated before any role is granted, and the dialog stays open when a correction is needed. The same restrictions as everywhere else apply: the ‘administrator’ role never expires, and the fallback list offers only the roles you are allowed to grant yourself.
  • Fix: Content View Restrictions add-on: the prohibited posts cache (30 seconds by default) could be rebuilt by several PHP-FPM workers simultaneously when it expired under load – each rebuild scanned all content view restrictions meta rows with a full table scan, multiplying slow queries and amplifying a PHP-FPM workers pool exhaustion on large sites. The restrictions query uses the wp_postmeta meta_key index now (IN() lookup without a sort), only one worker rebuilds the cache while others wait for its result, the cache is read once per request instead of once per WordPress query, and the cache lifetime is adjustable via the new ‘ure_content_view_restrictions_cache_ttl’ filter.
  • Update: Content View Restrictions add-on: the prohibited posts list is built much faster at large sites. Posts which can not be hidden from the listings are filtered out before the edit permission check, and the edit permission is checked once per post type, post author and post status combination instead of once per post – it was a post load and a capability check per every post with the restriction meta data. The restriction meta data is read with one lookup per meta key, so the database uses the meta_key index instead of scanning the whole post meta table when a noticeable share of the table belongs to the restrictions. A ‘map_meta_cap’ or ‘user_has_cap’ filter which may decide per post switches the per-post check back on automatically; the ‘ure_cvr_edit_check_post_independent’ filter confirms that such a filter does not touch the post edit permissions.
  • New: Content View Restrictions add-on: the ‘ure_cvr_prohibited_posts_debug’ action reports every step of the prohibited posts cache work – what the cache held at each read, if the worker got the rebuild lock and for how long it waited, the rebuild duration, the queries count and the list size – with the request ID and the process ID, so that the parallel requests can be told apart at a busy site. The ‘ure_cvr_prohibited_posts_rebuilt’ action gets the rebuild details as its second argument.
  • Fix: Content View Restrictions add-on: a worker which found the prohibited posts cache empty and then waited for the rebuild lock did not get the list which the lock holder stored meanwhile: without a persistent object cache WordPress answers a repeated read of a missing option from the request memory, so the worker rebuilt the list again. The cache is read from the database after the lock now, which gives one rebuild per user per cache window. The ‘stored’ field of the ‘ure_cvr_prohibited_posts_debug’ rebuild report tells whether the cache holds the list: WordPress reports a false write result when the identical value is stored already.
  • Update: Content View Restrictions add-on: the restriction meta data is read from the database once per cache window for all users together instead of once per user, and the shared copy is dropped as soon as a restriction is changed. With many active users this removes a post meta table read per user per cache window, and a user’s prohibited posts list is built about four times faster. The ‘ure_cvr_prohibited_posts_debug’ rebuild report shows where the data came from in ‘stats.data.source’.
  • Security fix (core): Users page (“Change role to…” action), user profile page, “Add New User” page, “Add Existing User” invitation for multisite, REST API: a user with the “promote_users” capability could assign themselves or others roles with capabilities beyond their own. The check of the “Change role to…” action could be bypassed with specially crafted request parameters, and the role assignment made by WordPress itself at the other places was not under control. Such roles are refused at all these places now. Thanks to Thu Ta for the responsible disclosure.
  • Security fix (core): the list of critical capabilities checked at the role assignment is extended: it covers the WordPress administration capabilities which open the users, plugins, themes, network and options screens, and the User Role Editor own capabilities ‘ure_edit_roles’ and ‘ure_manage_options’ which open the plugin screens. A user may grant a role carrying such a capability only if he holds that capability himself. The list can be made longer or shorter with the ‘ure_get_critical_capabilities’ filter. Thanks to Maulana Abdan Sakur for the responsible disclosure.
  • Fix (core): Capabilities editor (roles and users): the page layout did not adapt properly to the browser window size – the toolbar could move out of view. It fits the window now and follows its resizing.
  • Update (core): ‘unfiltered_html’ is a critical capability as well: a user who does not hold it can not grant a role which carries it, e.g. the Editor role.
  • Fix (core): User profile page: additional/other roles with critical capabilities were removed from a user when a user manager without those capabilities saved the user’s profile. The roles the user already had are kept now.
  • Update (core): User profile page: the roles which were not assigned at the profile save, as the current user is not allowed to grant them, named in dismissible notice, the other selected roles are still granted.
  • Update (core): Users page (“Grant Roles”): the roles which the current user is not allowed to grant are skipped and named in a dismissible notice, the other selected roles are still granted.