# Comments – wpDiscuz <= 7.7.0 - Unauthenticated Stored Cross-Site Scripting via Comment Span Title (Attachment Lightbox)

- **ID:** WPSEC-2026-4702
- **Plugin:** Comments – wpDiscuz (`wpdiscuz`), https://wordpress.org/plugins/wpdiscuz/
- **Affected versions:** from 7.6.48 before 7.8.0
- **Fixed in:** 7.8.0 (Update to 7.8.0 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wpdiscuz
- **Fix released:** 2026-12-04
- **Published:** 2026-12-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4702/

## Description

The wpDiscuz plugin for WordPress is vulnerable to Stored Cross-Site Scripting via span markup in comment content in all versions up to, and including, 7.7.0, due to the comment HTML allow-list accepting the title attribute on span elements and the Media Uploader lightbox binding to every element with the wmu-lightbox class on the page. Colorbox prints the element's title into the lightbox as HTML. This makes it possible for unauthenticated attackers, where guest commenting is allowed, to inject arbitrary web scripts that execute when a user clicks the crafted element. The Media Uploader lightbox must be enabled, which it is by default.

## References

- https://wpsec.com/vuln/WPSEC-2026-4702/
- https://plugins.svn.wordpress.org/wpdiscuz/tags/7.8.0/
- https://wordpress.org/plugins/wpdiscuz/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4702/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
