WP-HTML-Compression leaves comment links live enough to carry script
CVE-2026-136546 affects WP-HTML-Compression for WordPress through version 0.5.8. The plugin processes comment text, including the author URL and anchor links, but does not sufficiently sanitize and escape the result. A visitor can submit a comment containing crafted markup that survives until an administrator or other page visitor views it.
WordPress moderation changes the attack sequence. Under default discussion settings, a first comment from a new visitor needs approval. Once that commenter is approved, later payload comments may be auto-approved. Sites that allow anonymous comments without moderation have a shorter path. The advisory describes an unauthenticated attacker, but the practical timing depends on the site's comment policy.
Remove the plugin or update to a vendor-fixed release above 0.5.8. If the fixed release is not available, disable comment links, turn off the plugin's HTML transformation for comments or disable comments on pages that do not need them. Review cached pages after cleanup, because a stored payload can remain in a CDN or HTML cache after the database record is removed.
Search comments and generated page HTML for attribute-breaking quotes, script elements, event handlers and encoded variants. Review modification records for comments that were auto-approved after an earlier approval. Check web-server logs for visitors following links to attacker-controlled domains from the affected site.
If administrator sessions were exposed, reset sessions and review changes to plugins, themes, users and site options. A stored script can create a new administrator or alter application passwords under an existing session. Cookie rotation alone is not enough; the application state needs an integrity review.
The corrective code should avoid building HTML with untrusted text and then treating that HTML as a trusted transformation input. Comment text and URLs need context-specific escaping, and any HTML rewriting feature should be removed unless it can preserve the parser's safety model.
Top comments (0)