Atomic Edge analysis of CVE-2026-123970: wpForo Forum versions up to and including 3.2.4 contain an authenticated (Subscriber+) stored cross-site scripting vulnerability in the thread[body] parameter. The flaw resides in the attachment rendering logic within wpforo/includes/hooks.php, where the basename of an attachment filename is inserted into HTML without escaping. Successful exploitation requires a custom forum access profile that permits reading but denies attachment viewing (va=0 or caa=0), which is not the default configuration. The CVSS score is 6.4.
Root Cause: The vulnerability sits in wpforo/includes/hooks.php around line 2587, inside the filter that builds attachment HTML for users who cannot view attachments. When a post contains a wpforo-default-attachment link, the code extracts the filename from the link text (the anchor text) and embeds it into an element via urldecode( basename( $match[2] ) ). That value is concatenated directly into the HTML string without escaping. An attacker controls the anchor text of the wpforo-default-attachment link inside the thread[body] parameter. The sanitization applied to the post body (wpforo_kses with the ‘post’ context) allows markup that survives filtering, and the anchor text is later re-parsed by the attachment filter. The patched line wraps the value in esc_html(), confirming the missing output escaping was the root cause.
Exploitation: An authenticated attacker with Subscriber-level access posts a new forum topic or reply, supplying the thread[body] parameter containing a wpforo-default-attachment link whose anchor text carries an XSS payload, for example [wpforo-default-attachment]payload[/wpforo-default-attachment] or the exact shortcode syntax used by the plugin. The payload is stored in the post. When a victim whose forum access profile denies attachment viewing (va=0 or caa=0) views the post, the attachment filter builds the attach_cant_view HTML using the unescaped anchor text, and the browser executes the injected script. The attack depends on an administrator having configured a custom access profile that allows reading but denies attachment viewing; default configurations are not affected.
Patch Analysis: Version 3.2.5 adds esc_html() around the urldecode( basename( $match[2] ) ) output in wpforo/includes/hooks.php. Before the patch, the anchor text flowed into the HTML unescaped. After the patch, HTML special characters in the filename are encoded, so injected tags and event handlers render as text rather than executable markup. The patch also hardens several adjacent surfaces: Members.php now escapes list-table output and casts userid to int, Forms.php applies wpforo_kses with the ‘post’ context to tinymce fields, Members.php sanitizes display_name, user_nicename, first_name, last_name, and user_url before storage and reserves those keys against direct injection, Template.php escapes the quote mention, display_name, post URL, and phrase strings, and hooks.php reserves the same profile fields. These changes close related stored XSS paths that share the same anchor-text and profile-field data flow.
Impact: A Subscriber can store a script that executes in the browser of any forum reader whose access profile denies attachment viewing. Exploitation enables session theft, credential harvesting, forced actions on behalf of the victim, and persistence within the forum context. Because the payload is stored, it affects every qualifying viewer until the post is removed. The requirement for a non-default access profile limits the attack surface, but any site that has configured such a profile is fully exposed to Subscriber-level stored XSS.







