CVE-2026-136546: WP-HTML-Compression <= 0.5.8 - Unauthenticated Stored Cross-Site Scripting via Comment Author URL and Comment Body Link

Published Dec 2, 2026
·
Updated

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

1 affected component
WordPress WP-HTML-Compression<=0.5.8

Event History

Dec 2, 2026
CVE Published
via MITRE·02:28 AM
Data Sourced
via MITRE·02:28 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203