Stored cross-site scripting in WP-HTML-Compression WordPress plugin
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
The WP-HTML-Compression plugin for WordPress is vulnerable in all versions up to and including 0.5.8. Missing input sanitization and output escaping of the comment author URL and comment links let unauthenticated attackers store scripts that run for visitors who open the affected pages (CWE-79). Under default discussion settings, an administrator must first approve one earlier comment from the attacker.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Description from the CNA
The WP-HTML-Compression plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'url (comment_author_url) 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| prometh | WP-HTML-Compression | up to 0.5.8 | — | No fix listed | CNA |
- WP-HTML-Compression Vendorprometh Affected up to 0.5.8 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for WP-HTML-Compression.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Timeline
- 2026-12-02 Threatist record created from CVE-2026-136546
- 2026-12-02 Alias added: GHSA-p883-h5rm-3rgm
References
Other 7
- https://www.wordfence.com/threat-intel/vulnerabilities/id/106f750e-2416-4bc3-ab2c-7fedb4c99b67?source=cve
- https://plugins.trac.wordpress.org/browser/wp-html-compression/tags/0.5.8/libs/absolute-to-relative-urls.php#L310
- https://plugins.trac.wordpress.org/browser/wp-html-compression/tags/0.5.8/libs/absolute-to-relative-urls.php#L350
- https://plugins.trac.wordpress.org/browser/wp-html-compression/tags/0.5.8/libs/html-minify.php#L186
- https://plugins.trac.wordpress.org/browser/wp-html-compression/tags/0.5.8/libs/absolute-to-relative-urls.php#L139
- https://plugins.trac.wordpress.org/browser/wp-html-compression/tags/0.5.8/libs/html-minify.php#L68
- https://plugins.trac.wordpress.org/browser/wp-html-compression/tags/0.5.8/wp-html-compression.php#L31
Sources
- CVE-2026-136546 · CVE Program
- CVE-2026-136546 · NVD
- GHSA-p883-h5rm-3rgm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences