CVE-2026-12144: Wholesale for WooCommerce <= 2.0.5 - Authenticated (Author+) Privilege Escalation via 'user_role_set' Parameter
The Wholesale for WooCommerce plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 2.0.5. This is due to the saverequestsmeta() function applying only sanitizetextfield() to the userroleset POST parameter before passing it directly to WPUser::addrole(), with no allowlist validation against permitted wholesale roles and no capability check such as currentusercan('promoteusers') or currentusercan('manageoptions'). This makes it possible for authenticated attackers with author-level access and above to escalate their privileges to administrator by supplying administrator as the userroleset value in a crafted request. The function is gated only by a nonce (requestuserrolenonce) that is rendered in the meta box on the wwprequests post edit screen; because the post type is registered with capabilitytype => 'post', any author-level user who has authored a wwprequests post — such as one created via the wholesale registration form — can access this nonce and submit the role-assignment request.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
wordpress/wholesale-for-woocommerceto a version that resolves this vulnerability.Fixed in 2.0.5 - Configuration
In save_requests_meta(), validate the submitted user_role_set value against an allowlist of permitted wholesale roles (not just sanitize_text_field()), and add an explicit capability check such as current_user_can('promote_users') or current_user_can('manage_options') before using WP_User::add_role().
Wholesale for WooCommerce (WordPress plugin) user_role_set allowlist and capability checks in save_requests_meta() = Require allowlisted wholesale roles for user_role_set and enforce current_user_can('promote_users') or current_user_can('manage_options') before calling WP_User::add_role()
Event History
Frequently Asked Questions
What is the severity of CVE-2026-12144?
The severity of CVE-2026-12144 is rated as high with a CVSS score of 8.8.
How do I fix CVE-2026-12144?
To fix CVE-2026-12144, update the Wholesale for WooCommerce plugin to version 2.0.6 or later.
What type of vulnerability is CVE-2026-12144?
CVE-2026-12144 is a privilege escalation vulnerability that allows authenticated users to gain higher privileges.
Is my site at risk if I am using Wholesale for WooCommerce version 2.0.5 or earlier?
Yes, if you are using Wholesale for WooCommerce version 2.0.5 or earlier, your site is at risk of the CVE-2026-12144 vulnerability.
What is affected by CVE-2026-12144?
CVE-2026-12144 affects all versions of the Wholesale for WooCommerce plugin for WordPress up to and including 2.0.5.