---
id: CVE-2026-15369
title: >-
  The Custom User Registration Fields for WooCommerce plugin for WordPress is
  vulnerable to Privilege Escalation in versions up to, and including, 2.2.3
summary: >-
  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 val…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-269
published: '2026-08-29'
updated: '2026-08-29'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-15369'
references:
  - url: >-
      https://woocommerce.com/products/custom-user-registration-fields-for-woocommerce/
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/715723e7-5820-4a64-848f-f89b5b73a681?source=cve
    label: security@wordfence.com
tags:
  - nvd
ingestedAt: '2026-08-30T12:52:24.212Z'
epss: 0.00397
epssPercentile: 0.31063
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
