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-93747 Overview
CVE-2026-93747 is a Stored Cross-Site Scripting (XSS) vulnerability in the wpForo Forum plugin for WordPress, affecting all versions up to and including 3.1.6. The flaw resides in the telegram custom profile field handling during the profile_update action. Authenticated users with subscriber-level access or higher can inject arbitrary JavaScript that executes when any visitor loads an affected profile page. The vulnerability is tracked as CWE-79: Improper Neutralization of Input During Web Page Generation and was published in the Wordfence Vulnerability Report.
Critical Impact
Authenticated subscribers can store malicious scripts in forum profile fields that execute in the browser of every user who views the injected page, enabling session theft, account takeover, and content manipulation.
Affected Products
- wpForo Forum plugin for WordPress, versions up to and including 3.1.6
- WordPress sites using the telegram custom profile field via wpForo
- WordPress installations that allow subscriber-level user registration with wpForo enabled
Discovery Timeline
- 2026-09-25 - CVE-2026-93747 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93747
Vulnerability Analysis
The vulnerability occurs in the wpForo profile_update action handler. When a user submits profile data, the raw $_POST['data'] array is copied into a $custom_fields variable before the validate() and sanitize() routines execute. Those sanitization routines operate only on a parallel $user reference, leaving $custom_fields untouched. The unsanitized $custom_fields array is then persisted through update_custom_fields().
On render, the wpforo_decode() function reverses entity encoding applied earlier in the pipeline. The decoded value is echoed by field_wrap_profile() without additional output escaping. This allows attacker-supplied HTML and JavaScript to reach the DOM intact.
Root Cause
The root cause is a split-reference sanitization pattern. Validation and sanitization logic references one copy of the input, while persistence uses an entirely separate copy that was created before any filtering. Compounding this, the render path actively decodes previously encoded entities and relies on no escaping function such as esc_html() or esc_attr() before output.
Attack Vector
An attacker with a subscriber account navigates to their forum profile edit page and submits a crafted payload in the telegram profile field. The payload is stored in the database. When any site visitor, including administrators, views the attacker's profile page, the script executes under the site's origin. This enables cookie theft, forced actions via the WordPress REST API, and defacement.
The vulnerable code paths referenced by the Wordfence advisory include Actions.php L711, Members.php L906, and Members.php L1157. No verified exploit code is published; refer to the vendor code changeset for the fix details.
Detection Methods for CVE-2026-93747
Indicators of Compromise
- Profile field values in the wp_wpforo_profiles table containing <script>, onerror=, onload=, or javascript: strings
- Unexpected outbound requests from administrator browsers after viewing forum member profiles
- Newly created administrator accounts or modified user roles following profile page views
- POST requests to admin-ajax.php or wpForo endpoints with action=profile_update containing HTML entities in the data[telegram] parameter
Detection Strategies
- Query the wpForo custom fields storage for stored HTML markup or script tags in the telegram field across all users
- Review WordPress access logs for profile_update POST requests originating from low-privilege accounts
- Monitor for Content Security Policy (CSP) violation reports on forum profile rendering pages
- Correlate subscriber account creation timestamps with subsequent profile updates to identify suspicious patterns
Monitoring Recommendations
- Enable WordPress audit logging for all user meta and custom field changes
- Alert on administrator sessions that trigger unexpected JavaScript errors or cross-origin requests after visiting member profiles
- Track registration spikes against the wpForo subscriber role
- Review web application firewall (WAF) telemetry for XSS signatures targeting data[telegram] parameters
How to Mitigate CVE-2026-93747
Immediate Actions Required
- Update the wpForo Forum plugin to a version newer than 3.1.6 as released in the wpForo code changeset
- Audit the wp_wpforo_profiles table and all custom field storage for existing injected payloads in the telegram field
- Reset passwords and invalidate active sessions for any administrator that visited forum profiles since the plugin was installed
- Temporarily disable new user self-registration if patching cannot be performed immediately
Patch Information
The wpForo development team addressed the issue in a release following version 3.1.6. The fix is visible in the vendor code changeset, which corrects the sanitization flow so that $custom_fields is validated and sanitized before persistence, and ensures output escaping is applied in field_wrap_profile().
Workarounds
- Restrict user registration to trusted email domains or require manual administrator approval for new accounts
- Deploy a WAF rule that blocks HTML and script syntax in POST parameters named data[telegram]
- Enforce a strict Content Security Policy that disallows inline scripts on forum profile pages
- Remove or hide the telegram custom field from the wpForo profile configuration until the plugin is patched
# Configuration example
# WP-CLI commands to update wpForo and audit stored profile data
wp plugin update wpforo
wp db query "SELECT userid, fields FROM wp_wpforo_profiles WHERE fields LIKE '%<script%' OR fields LIKE '%onerror=%' OR fields LIKE '%javascript:%';"
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

