Hide & Restrict Products by User Role for WooCommerce
Hide & Restrict Products by User Role for WooCommerce has one disclosed vulnerability in the WordSec catalog, all reported in 2026; it is fixed as of December 2026. Their average CVSS score is 5.3, and the most serious one scores 5.3 out of 10.
The most common weakness is Missing Authorization, behind 1 of the records (100%).
The one issue recorded for Hide & Restrict Products by User Role for WooCommerce has a vendor fix available, so running the current release closes it.
All of these findings were reported by Oly Hossen. Hide & Restrict Products by User Role for WooCommerce is installed on roughly 400 WordPress sites, so each unpatched flaw has a wide blast radius. The current release is tested up to WordPress 7.2.
CVE-2026-107863Products Restricted Users for WooCommerce <= 0.7 - Missing Authorization
Read the full analysisVulnerability Records

Hide & Restrict Products by User Role for WooCommerce
Author
Javier Carazo
Some products are not for everybody: wholesale prices for your B2B customers, customer-specific products made for one client, courses or services for members only. With this plugin you control the product visibility of any product or product category by user role or by user: choose who is allowed and decide what happens to everybody else. Hide products from them completely, or let them see the product but not buy it. ✅ Tested with WordPress 7.2 and WooCommerce 11.3 ✅ HPOS compatible ✅ Cart and Checkout blocks compatible ✅ 100% free, no premium version, no locked features 🔒 Two restriction modes Hidden: only the users and roles in the list can see and buy the product. Everybody else does not find it in the shop, categories, tags, site search, the REST API or the Store API used by the cart and checkout blocks, and is sent to the home page if they open its link Visible but not for sale: everybody can see the product, but only the users and roles in the list can buy it. A good way to show your catalogue and keep some prices or products for registered customers 👥 Who can buy Users: pick customers one by one from a searchable list Roles: allow whole roles at once, such as wholesale customers, members or your own custom roles Visitors who are not logged in are treated like any user who is not in the list Administrators and shop managers always see and can buy everything 🗂️ Products and categories Set the restriction in each product, in a box below “Product data” Set it in a product category too: with the hidden mode, the category page is only open to the users and roles allowed Tick “Update to all the products in the category” to copy the same restriction to every product of the category in one go Variable products: the restriction of the product applies to all its variations 🛡️ No way around it Restricted products cannot be added to the cart, not even with a direct add-to-cart link Products already in the cart are checked again before checkout and removed if the customer is no longer allowed The same checks apply to the checkout block and the Store API Compatible with Ultimate WooCommerce Auction Pro: users who are not allowed cannot bid 💡 Ideas Wholesale or B2B: products that only the “Wholesale customer” role can see Products for one client: a quote, a custom product or a renewal that only that customer can buy Members only: courses, tickets or services for the users with a membership role 💬 What users say “With this plugin I can do just that. Sheer greatness! Thank you!” — tille, on making a subscription product that only its original client can renew “Good, simple and useful. Recommended.” — seneca650 “Thank you for including in the last update to apply the restriction in addition to products in the categories.” — seneca650 More plugins by Codection Import and export users and customers (free): create your customers or change their roles in bulk from a CSV file, so you can give the “Wholesale customer” role to hundreds of customers at once and they see their products straight away Clean Login (free): login, registration and profile forms on your own pages, so your restricted customers log in without seeing wp-login.php Payment Schedule for WooCommerce Subscriptions: choose the start and end date of your subscriptions and show your customers when every payment will be charged Selling in Spain? RedSys, Bizum and Ceca payment gateways for WooCommerce and many other plugins
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C