Comments – wpDiscuz <= 7.7.0 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Display Name in User Mentions

Medium 6.4 CWE-79Fixed in 7.8.0
ID
WPSEC-2026-4705
Plugin
Comments – wpDiscuz (wpdiscuz)
Affected
from 7.0.0 before 7.8.0
Remediation
Update to 7.8.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-05
Attack surface
Comments – wpDiscuz on WPSec AttackSurface
Fix released
Published

Description

The wpDiscuz plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the user display name in @mentions in all versions up to, and including, 7.7.0, due to insufficient output escaping in the userMentioning() function. It inserts the mentioned user's display name and profile URL without escaping and replaces mentions anywhere in the comment HTML, including inside attribute values such as a link's href. This makes it possible for authenticated attackers, with subscriber-level access and above, to set a display name containing an attribute-breaking payload and mention themselves in a comment link. The injected web scripts then run for moderators and visitors viewing the comment. User mentioning is enabled by default.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0