CVE-2026-15369
JSON

9.8critical

Custom User Registration Fields for WooCommerce <= 2.2.3 - Unauthenticated Privilege Escalation via 'afreg_select_user_role' Parameter in Store API Checkout

Severity
9.8critical CVSS:3.1 by Wordfence
Exploit likelihood
0.53% (higher than 38% of CVEs)
Published
Last changed
Assigned by
Wordfence

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.

Affected

Product or packageVersionsReported by
Addify Custom User Registration Fields for WooCommerceup to 2.2.3CVE List

Classification

CWE-269

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-15369 changed 2026-11-26CVE Terms of Use
NVDCVE-2026-15369 changed 2026-09-01Public domain