Comments – wpDiscuz <= 7.7.0 - Unauthenticated Stored Cross-Site Scripting via Comment Span ID

Medium 6.1 CWE-79Fixed in 7.8.0
ID
WPSEC-2026-4701
Plugin
Comments – wpDiscuz (wpdiscuz)
Affected
all versions before 7.8.0
Remediation
Update to 7.8.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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 id attribute of span elements in comment content in all versions up to, and including, 7.7.0, due to the comment HTML allow-list accepting id (and contenteditable) on spans and the front-end script not validating the comment id it reads from the markup. The reply handler reads the id of the closest .wpd-comment element and puts it unescaped into the reply form template it inserts into the page. This makes it possible for unauthenticated attackers, where guest commenting is allowed, to inject arbitrary web scripts that execute when a user interacts with the crafted comment.

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