CVE-2026-142132: BuddyX <= 5.3.0 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Comment Content
The BuddyX theme for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 5.3.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit bypasses WordPress core's save-time kses sanitization because the theme's htmlentitydecode() call undoes entity encoding at render time; once a Subscriber's first comment is approved, subsequent malicious comments auto-approve under default Discussion settings, requiring no further administrator interaction to deliver the payload.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An authenticated WordPress user with Subscriber-level access or higher can exploit it. The attacker must be able to submit comments to the site.
Are default WordPress comment settings affected?
Yes. Under the default Discussion behavior described, after a Subscriber's first comment is approved, that user's later malicious comments can be approved automatically without further administrator interaction.
What must happen for the malicious script to execute?
A user must visit a page containing the injected comment. The stored script then executes in that visitor's browser.
How can I determine whether my site may be affected?
Sites using BuddyX version 5.3.0 or earlier may be affected, particularly if authenticated Subscribers can comment. Review comments submitted by low-privileged authenticated users for suspicious encoded HTML or script-like content.