CVE-2026-142188: HTML Purifier through 4.19.1 URI.HostBlacklist Bypass via Mixed-Case Host Names
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
Event History
Frequently Asked Questions
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.
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.
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.
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.