{"schemaVersion":3,"id":"CVE-2026-12144","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"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 `save_requests_meta()` function applying only `sanitize_text_field()` to the `user_role_set` POST parameter before passing it directly to `WP_User::add_role()`, with no allowlist validation against permitted wholesale roles and no capability check such as `current_user_can('promote_users')` or `current_user_can('manage_options')`. This makes it possible for authenticated attackers with author-level access and above to escalate their privileges to administrator by supplying `administrator` as the `user_role_set` value in a crafted request. The function is gated only by a nonce (`request_user_role_nonce`) that is rendered in the meta box on the `wwp_requests` post edit screen; because the post type is registered with `capability_type => 'post'`, any author-level user who has authored a `wwp_requests` post — such as one created via the wholesale registration form — can access this nonce and submit the role-assignment request.","dates":{"published":"2026-07-29T01:29:41.564Z","modified":"2026-07-29T13:02:20.552Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00523,"percentile":0.43495,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.16500000000000004,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00358},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00523,"percentile":0.43495}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00358,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00523,"percentile":0.43495}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-269","name":"Improper Privilege Management","description":"The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/269.html"}],"affected":[{"vendor":"saadiqbal","product":"wholesale for woocommerce","name":"Wholesale for WooCommerce","label":"wholesale for woocommerce","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.0.5","eol":null,"hubHref":"/vendor/saadiqbal/wholesale_for_woocommerce"},{"vendor":"wordpress","product":"woo-wholesale-pricing","name":"Wholesale for WooCommerce – Ultimate AI-Powered B2B Ecommerce Solution – Bulk Order Form, Quotes, & More","label":"woo-wholesale-pricing","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.0.5 (fixed in 2.0.6)","noFixRecorded":false,"fixedIn":"2.0.6"}],"versionsText":"≤ 2.0.5 (fixed in 2.0.6)","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/327a155c-7a7d-494d-94d1-f7e7ee8927f0?source=cve","label":"www.wordfence.com/threat-intel/vulnerabilities/id/327a155c-7a7d-494d-94d1-f7e7ee8927f0?source=cve","hostname":"www.wordfence.com","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/woo-wholesale-pricing/tags/2.0.5/inc/class-wwp-wholesale-requests.php#L369","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/woo-wholesale-pricing/tags/2.0.5/inc/class-wwp-wholesale-requests.php#L397","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/woo-wholesale-pricing/tags/2.0.5/inc/class-wwp-wholesale-requests.php#L274","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/changeset?reponame=&old=3621257%40woo-wholesale-pricing&new=3621257%40woo-wholesale-pricing","label":"plugins.trac.wordpress.org/changeset","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/327a155c-7a7d-494d-94d1-f7e7ee8927f0","label":"www.wordfence.com/threat-intel/vulnerabilities/id/327a155c-7a7d-494d-94d1-f7e7ee8927f0","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-07-29T01:29:41.564Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-29T13:02:20.552Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T19:19:06.983Z","stale":false,"partial":false}}