wpForo Forum Stored Cross-Site Scripting Vulnerability in 'location' Profile Field

Vulnerability

A stored cross-site scripting vulnerability has been identified in the wpForo Forum plugin for WordPress, affecting all versions through 3.1.1. The issue arises from inadequate input sanitization and output escaping, allowing authenticated attackers with subscriber-level access or higher to inject arbitrary scripts into pages. These scripts execute when users access the compromised pages. The vulnerability exploits the 'location' profile field, where the sanitize_text_field() function fails to properly encode double quotes, enabling attribute breakout and the injection of event handler attributes.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user viewing the affected page.

Reproduction

To reproduce this vulnerability, an authenticated user with subscriber-level access can inject a script into the 'location' profile field. The injected script will be executed when another user views the profile or a page that includes the profile field.

Remediation

Users are advised to update the wpForo Forum plugin to version 3.1.2 or a newer patched version.

Added: Jul 16, 2026, 9:46 AM
Updated: Jul 16, 2026, 9:46 AM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
1.7
exploitability
6.2
remediation
7.7
relevance
9.7
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.