Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-100186 Overview
CVE-2026-100186 is a Stored Cross-Site Scripting (XSS) vulnerability in the User Profile Builder plugin for WordPress. The flaw affects all versions up to and including 4.0.3. The plugin fails to sanitize input and escape output on the First Name field during registration. Unauthenticated attackers can inject arbitrary web scripts that execute when a user accesses the affected page. Exploitation requires the Email Confirmation feature to be enabled in Profile Builder. The vulnerability is classified under [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Unauthenticated attackers can inject persistent JavaScript payloads via the First Name field, enabling session hijacking, administrator account takeover, and malicious redirects when victims view the injected content.
Affected Products
- User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor plugin for WordPress
- All versions up to and including 4.0.3
- Only exploitable when the Email Confirmation feature is enabled
Discovery Timeline
- 2026-10-16 - CVE-2026-100186 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-100186
Vulnerability Analysis
The User Profile Builder plugin processes user registration data through its Email Confirmation workflow when that feature is active. During this flow, the First Name field value is stored and later rendered in pages served to administrators and other users. The plugin does not apply sufficient input sanitization at the point of submission, nor does it escape the value when it is output in HTML context. An attacker who submits a registration form containing script content in the First Name field causes the payload to persist in the site's data store. The payload then executes in the browser of any user who loads a page displaying the attacker-controlled value.
Root Cause
The root cause is the absence of proper encoding and sanitization around user-controlled input in the First Name field handling. Relevant code paths exist in front-end/default-fields/first-name/first-name.php and features/email-confirmation/class-email-confirmation.php in the 4.0.3 release. The output path in the Email Confirmation feature emits the stored value into HTML without applying esc_html() or an equivalent WordPress escaping function.
Attack Vector
Exploitation is network-based and requires no authentication or user interaction from the attacker side. An attacker submits the public registration form on a WordPress site that uses Profile Builder with Email Confirmation enabled. The malicious First Name value is persisted and later rendered to any user viewing the injected page, including site administrators. Because the vulnerability has a scope change, the injected script runs in the context of the WordPress site's origin and can access cookies and session data available to the viewing user. See the Wordfence Vulnerability Report and the WordPress First Name Field Code for technical details.
// No verified exploit code available. See external references for
// vulnerable code locations in class-email-confirmation.php and first-name.php.
Detection Methods for CVE-2026-100186
Indicators of Compromise
- Registration records containing <script>, onerror=, onload=, or javascript: substrings in the First Name field
- Outbound HTTP requests from administrator browsers to unknown external domains shortly after viewing user management pages
- Unexpected administrator account creation or privilege changes following views of the Email Confirmation page
- WordPress logs showing new user registrations with abnormally long or encoded First Name values
Detection Strategies
- Query the WordPress wp_users and wp_usermeta tables for first_name entries containing HTML or script tokens
- Deploy a Web Application Firewall (WAF) rule to flag POST requests to Profile Builder registration endpoints carrying script payloads
- Monitor web server access logs for registration submissions with URL-encoded < and > characters in form fields
Monitoring Recommendations
- Alert on administrator sessions originating from unexpected geolocations after Email Confirmation page views
- Track creation of new administrator-level WordPress accounts and REST API key issuance
- Review Profile Builder plugin version across managed WordPress fleets to identify instances at or below 4.0.3
How to Mitigate CVE-2026-100186
Immediate Actions Required
- Update the User Profile Builder plugin to the version containing the fix referenced in WordPress Changeset #3741133
- If an immediate update is not possible, disable the Email Confirmation feature in Profile Builder settings to remove the exploitable condition
- Audit existing user accounts for malicious content in First Name values and sanitize or remove affected records
- Rotate administrator credentials and active session tokens if any suspicious registration activity is identified
Patch Information
The fix is delivered via WordPress Changeset #3741133, with modifications to class-email-confirmation.php documented in the WordPress Changeset Email Confirmation Code reference. Administrators should upgrade past version 4.0.3 to receive the patched sanitization and escaping logic.
Workarounds
- Disable the Email Confirmation feature in Profile Builder until the plugin is updated
- Restrict public user registration or require manual administrator approval for new accounts
- Deploy WAF rules to block registration submissions containing HTML or script syntax in text fields
- Apply a Content Security Policy (CSP) that disallows inline script execution to reduce impact of stored payloads
# Example WAF rule concept (ModSecurity) to block script content in registration POSTs
SecRule REQUEST_METHOD "@streq POST" \
"chain,id:1009001,phase:2,deny,status:403,msg:'Possible XSS in Profile Builder registration'"
SecRule ARGS_NAMES "@rx first_name" \
"chain"
SecRule ARGS "@rx (?i)(<script|onerror=|onload=|javascript:)" "t:none,t:urlDecodeUni"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

