Atomic Edge analysis of CVE-2026-102001: This vulnerability is a stored cross-site scripting (XSS) flaw in the wpForo Forum plugin for WordPress, affecting versions up to and including 3.2.4. The issue resides in the plugin’s quote rendering functionality, where the display_name field from a user’s profile is reflected without proper escaping in the data-mention attribute. An authenticated attacker with subscriber-level access or higher can inject arbitrary JavaScript that executes when any user views a page containing a quote referencing the attacker’s display name. The vulnerability has a CVSS score of 6.4 and is classified as CWE-79. Exploitation requires that the site administrator has disabled the profiles.mention_nicknames setting (which is off by default), causing the apply_quotes() method to use the unsanitized display_name instead of a sanitized nickname when constructing the data-mention attribute.
Root Cause: The root cause lies in the Template::apply_quotes() method within wpforo/classes/Template.php (around lines 3061-3068). When rendering a [quote] BBCode with a data-userid attribute, the plugin retrieves the user’s display_name and inserts it directly into the data-mention attribute of the generated blockquote element without escaping. The relevant sprintf format string uses %3$s for the mention value, and the variable $mention is populated from the user’s display_name when the profiles.mention_nicknames setting is disabled. The patch adds esc_attr( $mention ) to properly escape the attribute value. Additionally, the posted_by variable (which also derives from display_name) is now escaped with esc_html(). The root cause is insufficient output escaping in the quote rendering path, compounded by insufficient input sanitization of the display_name field in the Members::update() method (wpforo/classes/Members.php around lines 974-977). The patch adds sanitize_text_field() to the display_name when updating a user’s profile, but the primary fix is the output escaping in the template.
Exploitation: An attacker with subscriber-level access can exploit this by setting their display_name to a malicious payload containing JavaScript, such as a string that breaks out of the data-mention attribute and injects an event handler or script tag. The attacker would typically use the WordPress core profile form (wp-admin/profile.php) or a custom endpoint that allows updating the display_name. After setting the payload, the attacker creates a forum post or thread containing a [quote] BBCode that references their own user ID, for example: [quote data-userid=”123″]Some text[/quote]. When any user views the post, the apply_quotes() function processes the quote and inserts the unescaped display_name into the data-mention attribute, causing the injected script to execute in the victim’s browser. The attack requires the victim to view the page containing the quote, which could be a public forum thread. The profiles.mention_nicknames setting must be disabled (which is the default) for the display_name to be used instead of a sanitized nickname.
Patch Analysis: The patch (version 3.2.5) addresses the vulnerability through multiple changes. In wpforo/classes/Template.php, the apply_quotes() method now wraps the $mention variable with esc_attr() before inserting it into the data-mention attribute, and the $posted_by variable is escaped with esc_html(). This prevents any HTML or JavaScript from being interpreted in the attribute. Additionally, the patch adds sanitization of the display_name in the Members::update() method: if a display_name is provided, it is passed through sanitize_text_field() (and only updates if the result is non-empty). Similar sanitization is applied to user_nicename, first_name, last_name, and user_url. The patch also adds esc_html() escaping to various admin list table outputs in wpforo/admin/listtables/Members.php, and to attachment filenames in wpforo/includes/hooks.php. These changes collectively fix the XSS by ensuring that user-supplied data is properly sanitized on input and escaped on output, with the primary fix being the output escaping in the quote rendering.
Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of any user’s browser when they view a page containing a malicious quote. This can lead to session hijacking, theft of cookies or authentication tokens, defacement of the forum, redirection to malicious sites, or other client-side attacks. Because the payload is stored in the user’s display_name and triggered whenever a quote is rendered, the attack can affect a large number of users, including administrators. The CVSS score of 6.4 reflects the need for user interaction (viewing the page) and the requirement of authenticated access, but the potential for privilege escalation (e.g., creating a new admin account) makes it a significant threat.







