| Name | CVE-2026-28348 |
| Description | lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.4, the _has_sneaky_javascript() method strips backslashes before checking for dangerous CSS keywords. This causes CSS Unicode escape sequences to bypass the @import and expression() filters, allowing external CSS loading or XSS in older browsers. This issue has been patched in version 0.4.4. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4799-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| lxml (PTS) | bookworm | 4.9.2-1 | vulnerable |
| bookworm (security) | 4.9.2-1+deb12u1 | fixed | |
| trixie | 5.4.0-1 | fixed | |
| forky, sid | 6.1.3-1 | fixed | |
| lxml-html-clean (PTS) | trixie | 0.4.4-1~deb13u1 | fixed |
| forky, sid | 0.4.5-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| lxml | source | bookworm | 4.9.2-1+deb12u1 | DLA-4799-1 | ||
| lxml | source | (unstable) | 5.2.0-1 | |||
| lxml-html-clean | source | trixie | 0.4.4-1~deb13u1 | |||
| lxml-html-clean | source | (unstable) | 0.4.4-1 |
https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-hw26-mmpg-fqfg
Fixed by: https://github.com/fedora-python/lxml_html_clean/commit/2ef732667ddbc74ea59847bcf24b75809aaeed3b (0.4.4)
Regression: https://github.com/fedora-python/lxml_html_clean/commit/5b7e2288d9e5bda81d1fcf6a4feaed362534899e (0.4.4)
Additional tests: https://github.com/fedora-python/lxml_html_clean/commit/fd10d79cf8a4d4a962e139aee6d02dec02b2de7c (0.4.4)
lxml-html-clean was split out of lxml in 5.2.0