CVE-2026-15369

Published Aug 29, 2026

Last updated a day ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2026-15369 describes a privilege escalation vulnerability found in the "Custom User Registration Fields for WooCommerce" plugin for WordPress, affecting versions up to and including 2.2.3. This flaw allows an unauthenticated attacker to elevate their privileges to that of an Administrator. The vulnerability stems from the plugin's handling of the `afreg_select_user_role` value during an unauthenticated WooCommerce Store API `/wc/store/v1/checkout` request. The plugin accepts this attacker-controlled value and passes it directly to the `WP_User::add_role()` function without proper validation against the administrator-configured allowed role list. This enables attackers to create an account with elevated privileges by specifying "administrator" or another desired role slug in a modified JSON body during checkout, provided the "User Role Selection" setting is enabled.

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.
Source
security@wordfence.com
NVD status
Received

Risk scores

CVSS 3.1

Type
Primary
Base score
9.8
Impact score
5.9
Exploitability score
3.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity
CRITICAL

Weaknesses

security@wordfence.com
CWE-269

Social media

Hype score is a measure of social media activity compared against trending CVEs from the past 12 months. Max score 100.

Hype score

4