Comments – wpDiscuz <= 7.7.0 - Unauthenticated Arbitrary Shortcode Execution via Comment Content

Medium 4.8 CWE-94Fixed in 7.8.0
ID
WPSEC-2026-4703
Plugin
Comments – wpDiscuz (wpdiscuz)
Affected
from 7.0.2 before 7.8.0
Remediation
Update to 7.8.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness
CWE-94
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 arbitrary shortcode execution via comment content in all versions up to, and including, 7.7.0, due to the doShortcode() function running do_shortcode() on every rendered comment without restricting which shortcodes may run or who wrote the comment, and without filtering the output. This makes it possible for unauthenticated attackers to execute arbitrary registered shortcodes, and to inject web scripts through shortcodes that output HTML, when the 'Enable WordPress Shortcodes in Comment Content' option is enabled (off by default). The comment need not be approved: the plugin renders a new comment, shortcodes included, in its own AJAX response while it awaits moderation.

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