Skip to main content
Vulnerability Database/CVE-2026-95866

CVE-2026-95866: WordPress User Profile Builder XSS Vulnerability

CVE-2026-95866 is a stored XSS vulnerability in the User Profile Builder plugin for WordPress affecting versions up to 4.0.2. Attackers can inject malicious scripts via avatar fields. This article covers technical details, impact, and mitigation.

Published:

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-95866 Overview

CVE-2026-95866 is a stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor. The flaw affects all versions up to and including 4.0.2. Unauthenticated attackers can inject arbitrary web scripts into the avatar field, which later execute when administrators or other users view the affected account. The root cause is insufficient input sanitization and output escaping in the avatar upload handler. The vulnerability is tracked under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Unauthenticated attackers can store malicious JavaScript in user profiles, enabling session theft, administrator account takeover, and arbitrary actions in the WordPress admin context.

Affected Products

  • WordPress plugin: User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor
  • All versions up to and including 4.0.2
  • WordPress sites exposing avatar upload functionality to unauthenticated registration

Discovery Timeline

  • 2026-09-25 - CVE-2026-95866 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-95866

Vulnerability Analysis

The vulnerability resides in the avatar field handler of the Profile Builder plugin. When a user submits the avatar form, the wppb_save_avatar_value() function processes the uploaded file. A specific code path handles the case where the multipart file upload has zero length. In that branch, the raw request value is written directly to user meta without passing through the normal validation chain.

The validation functions wppb_save_attachment_id() and wppb_verify_attachment_id() are bypassed entirely in this path. The attacker-controlled value is later retrieved and treated as a legitimate WordPress attachment URL. When wppb_default_fields_make_upload_button() renders this value, it outputs the stored payload without HTML escaping. An administrator viewing the compromised profile triggers execution of the injected JavaScript in their authenticated session.

Root Cause

Two compounding defects produce the vulnerability. First, the zero-length multipart file branch in wppb_save_avatar_value() skips attachment ID validation and persists untrusted input directly to the wp_usermeta table. Second, the rendering function wppb_default_fields_make_upload_button() emits the stored value without applying esc_url() or esc_attr() escaping. Either control, applied correctly, would prevent exploitation.

Attack Vector

The attack is network-based and requires no authentication or user interaction from the attacker side. An unauthenticated attacker submits a crafted avatar upload request containing a malicious payload in a form field that bypasses the file validation path. The payload is stored in the targeted user's metadata. When an administrator later views the user listing or profile that renders the avatar, the script executes with administrator privileges in the browser context. This enables account takeover, plugin modification, or arbitrary PHP code deployment via the WordPress admin interface.

The vulnerable code paths are documented in the WordPress Profile Builder Avatar Code (line 127), avatar.php line 67, and the upload helper functions.

Detection Methods for CVE-2026-95866

Indicators of Compromise

  • Entries in the wp_usermeta table where avatar-related meta keys contain <script>, javascript:, onerror=, or other HTML and JavaScript syntax instead of a numeric attachment ID or valid URL
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains following access to the WordPress Users page
  • New administrator accounts or modified user roles created shortly after an administrator session accessed a user profile list
  • HTTP POST requests to the Profile Builder avatar endpoint containing multipart form data with empty file content but populated string fields

Detection Strategies

  • Query wp_usermeta for avatar fields containing non-numeric, non-URL content and inspect for HTML or script tokens
  • Review web server access logs for anomalous POST volume to Profile Builder front-end form endpoints from unauthenticated sources
  • Monitor administrator sessions for browser-initiated requests to unfamiliar external domains originating from /wp-admin/users.php or profile edit pages
  • Compare installed plugin versions against the fixed release and flag any instance of Profile Builder 4.0.2 or earlier

Monitoring Recommendations

  • Enable WordPress audit logging to capture user meta modifications and administrator account changes
  • Deploy a web application firewall rule that inspects multipart uploads to the Profile Builder avatar endpoint and blocks requests with HTML or script content in text fields
  • Alert on creation of new administrator-level users and on changes to plugin or theme files following administrator logins

How to Mitigate CVE-2026-95866

Immediate Actions Required

  • Update the User Profile Builder plugin to a version later than 4.0.2 that includes the fix referenced in the plugin changeset 3708665
  • Audit all user accounts for avatar meta values containing HTML or JavaScript content and sanitize or remove affected entries
  • Review administrator accounts and recent privilege changes for signs of unauthorized escalation
  • Rotate administrator passwords and invalidate active WordPress sessions after remediation

Patch Information

The vendor addressed the issue in the plugin update tracked by changeset 3708665. Site administrators should install the latest Profile Builder release from the official WordPress plugin repository. Additional technical analysis is available in the Wordfence Vulnerability Analysis.

Workarounds

  • Disable the User Profile Builder plugin until the patched version can be deployed
  • Restrict unauthenticated access to Profile Builder registration and profile edit forms using WAF rules or an .htaccess allowlist
  • Remove or disable the avatar field from Profile Builder form configurations to eliminate the vulnerable code path
  • Apply a WAF signature that rejects multipart uploads to the avatar endpoint when the file component is empty
bash
# Example: WP-CLI commands to identify and sanitize suspicious avatar meta entries
wp user meta list --format=csv | grep -iE 'avatar.*(<script|javascript:|onerror=)'
wp plugin update profile-builder
wp user session destroy --all

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.