CVE-2026-142188: HTML Purifier through 4.19.1 URI.HostBlacklist Bypass via Mixed-Case Host Names

Published Dec 2, 2026
·
Updated

HTML Purifier through 4.19.1 contains a blacklist bypass vulnerability in HTMLPurifierURIFilterHostBlacklist that allows attackers to evade URI.HostBlacklist using mixed-case host names. Attackers can submit HTML with link or resource URIs whose host differs in letter case from blacklist entries, defeating the case-sensitive strpos() check so blacklisted hosts remain in purified output.

Affected Software

1 affected component
HTML Purifier HTML Purifier<=4.19.1

Event History

Dec 2, 2026
CVE Published
via MITRE·04:51 PM
Data Sourced
via MITRE·04:51 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this bypass?

Deployments that use HTML Purifier's URI.HostBlacklist and process attacker-supplied HTML containing link or resource URIs are exposed. The bypass applies when a blocked hostname can be supplied with different letter casing than the corresponding blacklist entry.

2

What does an attacker need to exploit this issue?

An attacker needs a way to submit HTML that will be processed by HTML Purifier and can include a URI with a mixed-case hostname. No attacker privileges are required, but a user must interact with the retained link or resource URI.

3

How can I determine whether my configuration is affected?

Check whether URI.HostBlacklist is configured and whether the deployment uses HTML Purifier through version 4.19.1. Test a hostname listed in the blacklist using altered letter case and verify whether it remains in purified output.

4

Is every HTML Purifier deployment affected?

The described impact depends on use of URI.HostBlacklist. If that blacklist is not used to block hosts, this specific blacklist-bypass condition does not apply.

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