CVE-2026-136546: WP-HTML-Compression <= 0.5.8 - Unauthenticated Stored Cross-Site Scripting via Comment Author URL and Comment Body Link
The WP-HTML-Compression plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'url (commentauthorurl) and anchor href inside comment' parameter in all versions up to, and including, 0.5.8 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires that the attacker's comment is approved; under WordPress's default discussion settings, an administrator must first approve one prior comment from the attacker before subsequent payload-carrying comments are auto-approved and served to all visitors.
Affected Software
Event History
Frequently Asked Questions
What conditions must be met for exploitation to succeed?
An unauthenticated attacker must submit a malicious comment using the comment author URL field or a link in the comment body, and that comment must be approved before the payload is served. Under default WordPress discussion settings, approval of one earlier comment from the same attacker can cause later comments to be automatically approved.
Who can be affected by a successful exploit?
Any user who visits a page containing the approved malicious comment can have attacker-supplied script execute in their browser. The impact can therefore extend beyond the commenter and administrator to ordinary site visitors.
What can be done if updating is not immediately possible?
Do not approve comments from untrusted commenters, and review moderation behavior that automatically approves later comments after an earlier comment has been approved. Remove suspicious approved comments, particularly those containing unusual author URLs or links in comment bodies.
How can I check whether my site may already contain an exploit payload?
Review approved comments for untrusted or unexpected values in the comment author URL and for suspicious links in comment bodies. Prioritize comments from identities whose earlier comments were approved, since subsequent comments may have been auto-approved under the default discussion settings.