CVE-2026-142188
HTML Purifier through 4.19.1 contains a blacklist bypass …
HTML Purifier through 4.19.1 contains a blacklist bypass vulnerability in HTMLPurifier_URIFilter_HostBlacklist 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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/AttrDef/URI/Host.php#L84-
- github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/URIFilter/HostBlacklist.p
- www.vulncheck.com/advisories/html-purifier-through-4.19.1-uri-hostblacklist-bypass-via-mix
- nvd.nist.gov/vuln/detail/CVE-2026-142188
- cve.org/CVERecord?id=CVE-2026-142188
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.