# Comments – wpDiscuz <= 7.7.0 - Authenticated (Contributor+) Insecure Direct Object Reference to Comment Pinning and Closing

- **ID:** WPSEC-2026-4706
- **Plugin:** Comments – wpDiscuz (`wpdiscuz`), https://wordpress.org/plugins/wpdiscuz/
- **Affected versions:** all versions before 7.8.0
- **Fixed in:** 7.8.0 (Update to 7.8.0 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-639
- **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-4706/

## Description

The wpDiscuz plugin for WordPress is vulnerable to Insecure Direct Object Reference via the wpdStickComment and wpdCloseThread AJAX actions in all versions up to, and including, 7.7.0, due to the stickComment() and closeThread() functions authorizing the user against the supplied postId without checking that the supplied commentId belongs to that post. This makes it possible for authenticated attackers, with contributor-level access and above, to pin, unpin, close or reopen any top-level comment on other users' posts by passing the ID of a post they authored.

## References

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

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

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.
