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

Source: https://aplosec.si/cve/CVE-2026-142188/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142188

Medium 5.3 · Reported · No fix listed · CWE-178 · Packagist

# HTML Purifier through 4.19.1 URI.HostBlacklist Bypass via Mixed-Case Host Names

CVE-2026-142188 · published 2026-12-02

In plain words: this type of bug lets two parts of a system read the same input differently, so a check can be slipped past (parsing mismatch). No fixed release is listed yet.

## Summary

CVE-2026-142188 affects HTML Purifier (Packagist) <= 4.19.1: URI.HostBlacklist Bypass via Mixed-Case Host Names (CWE-178). No fixed release is listed. CVSS 4.0 base score 5.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/html-purifier-through-4.19.1-uri-hostblacklist-bypass-via-mixed-case-host-names](https://www.vulncheck.com/advisories/html-purifier-through-4.19.1-uri-hostblacklist-bypass-via-mixed-case-host-names)

- [Vulnerable codehttps://github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/URIFilter/HostBlacklist.php#L35-L43](https://github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/URIFilter/HostBlacklist.php#L35-L43)

- [Vulnerable codehttps://github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/AttrDef/URI/Host.php#L84-L89](https://github.com/ezyang/htmlpurifier/blob/v4.19.1/library/HTMLPurifier/AttrDef/URI/Host.php#L84-L89)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142188](https://www.cve.org/CVERecord?id=CVE-2026-142188)

**Severity:** Medium 5.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142188)

**Package:** HTML Purifier

**Ecosystem:** Packagist

**Affected:** <= 4.19.1

**Fixed:** None

**Weakness:** CWE-178

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
