Description
The Custom User Registration Fields for WooCommerce plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 2.2.3. This is due to the plugin accepting an attacker-controlled afreg_select_user_role value from the unauthenticated WooCommerce Store API /wc/store/v1/checkout request in the af_reg_checkout_data_to_order_meta_data_block() function, persisting it in order meta, and then passing it directly to WP_User::add_role() in the af_reg_custom_order_processing_function() function (hooked to woocommerce_thankyou) without validating against the plugin's admin-configured allowed role list. This makes it possible for unauthenticated attackers to elevate their privileges to Administrator by creating an account during checkout with a modified JSON body specifying administrator (or any other role slug) as the desired role. Note: The exploit requires the "User Role Selection" setting to be enabled.
Published: 2026-08-29
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation
Action: Immediate Patch
AI Analysis

Impact

The Custom User Registration Fields for WooCommerce plugin is vulnerable to unauthenticated privilege escalation due to the afreg_select_user_role parameter in the WooCommerce Store API checkout endpoint. The plugin accepts an attacker‑controlled role value, stores it in order meta, and later passes it unchecked to WP_User::add_role, allowing an unauthenticated attacker to create an account as an Administrator or any other role. This flaw arises because the value is not validated against the admin‑configured allowed role list and the "User Role Selection" setting must be enabled for the exploit to work.

Affected Systems

Vulnerable systems are any WordPress sites running the Addify:Custom User Registration Fields for WooCommerce plugin version 2.2.3 or earlier. The flaw exists in the checkout flow of WooCommerce where the Store API endpoint /wc/store/v1/checkout is exposed to external requests.

Risk and Exploitability

The CVSS score of 9.8 indicates a critical severity and the lack of authentication requirement makes exploitation straightforward when the plugin is present. The EPSS score is not provided, but the absence of a KEV listing does not diminish the urgency given the high CVSS and the plain‑text nature of the parameter. An attacker can trigger the exploit by sending a crafted JSON body to the checkout API without needing any credentials, and if the "User Role Selection" setting is enabled, the account will be created with administrative privileges. Given the ease of input and the absence of mitigation in the default configuration, the risk is high for unpatched or misconfigured installations.

Generated by OpenCVE AI on August 29, 2026 at 20:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Custom User Registration Fields for WooCommerce plugin to the latest version that resolves this issue.
  • If upgrade is not immediately possible, disable the "User Role Selection" feature in the plugin settings to prevent role assignment via the checkout flow.
  • Apply a firewall or WAF rule to restrict unauthenticated access to the /wc/store/v1/checkout endpoint, or require authentication for all Store API requests.

Generated by OpenCVE AI on August 29, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 01 Sep 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sat, 29 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Addify
Addify custom User Registration Fields For Woocommerce
Wordpress
Wordpress wordpress
Vendors & Products Addify
Addify custom User Registration Fields For Woocommerce
Wordpress
Wordpress wordpress

Sat, 29 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Description The Custom User Registration Fields for WooCommerce plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 2.2.3. This is due to the plugin accepting an attacker-controlled afreg_select_user_role value from the unauthenticated WooCommerce Store API /wc/store/v1/checkout request in the af_reg_checkout_data_to_order_meta_data_block() function, persisting it in order meta, and then passing it directly to WP_User::add_role() in the af_reg_custom_order_processing_function() function (hooked to woocommerce_thankyou) without validating against the plugin's admin-configured allowed role list. This makes it possible for unauthenticated attackers to elevate their privileges to Administrator by creating an account during checkout with a modified JSON body specifying administrator (or any other role slug) as the desired role. Note: The exploit requires the "User Role Selection" setting to be enabled.
Title Custom User Registration Fields for WooCommerce <= 2.2.3 - Unauthenticated Privilege Escalation via 'afreg_select_user_role' Parameter in Store API Checkout
Weaknesses CWE-269
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Addify Custom User Registration Fields For Woocommerce
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-09-01T02:15:41.417Z

Reserved: 2026-07-10T08:05:43.197Z

Link: CVE-2026-15369

cve-icon Vulnrichment

Updated: 2026-09-01T02:15:37.323Z

cve-icon NVD

Status : Deferred

Published: 2026-08-29T20:16:31.840

Modified: 2026-09-01T03:16:48.060

Link: CVE-2026-15369

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-29T20:30:05Z

Weaknesses
  • CWE-269

    Improper Privilege Management