Skip to content

CVE-2026-28348 lxml_html_clean: CSS @import Filter Bypass via Unicode Escapes

MediumCVSS 6.1 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
pypi lxml-html-clean(PyPI) < 0.4.4 0.4.4
pypi lxml-html-clean(PyPI) = 0.1.0 No fix listed
pypi lxml-html-clean(PyPI) = 0.1.1 No fix listed
pypi lxml-html-clean(PyPI) = 0.2.0 No fix listed
pypi lxml-html-clean(PyPI) = 0.2.1 No fix listed
pypi lxml-html-clean(PyPI) = 0.2.2 No fix listed
pypi lxml-html-clean(PyPI) = 0.3.0 No fix listed
pypi lxml-html-clean(PyPI) = 0.3.1 No fix listed
pypi lxml-html-clean(PyPI) = 0.4.0 No fix listed
pypi lxml-html-clean(PyPI) = 0.4.1 No fix listed
pypi lxml-html-clean(PyPI) = 0.4.2 No fix listed
pypi lxml-html-clean(PyPI) = 0.4.3 No fix listed
fedora-python lxml_html_clean = < 0.4.4 No fix listed
pypi lxml-html-clean(PyPI) <= 0.4.3 No fix listed
debian/lxml(Debian:12) < 4.9.2-1+deb12u1 4.9.2-1+deb12u1
debian/lxml(Debian:12) = 4.9.2-1 No fix listed
debian/lxml(Debian:13) < 5.2.0-1 5.2.0-1
debian/lxml(Debian:14) < 5.2.0-1 5.2.0-1
debian/lxml-html-clean(Debian:13) < 0.4.4-1~deb13u1 0.4.4-1~deb13u1
debian/lxml-html-clean(Debian:13) = 0.4.2-1 No fix listed
debian/lxml-html-clean(Debian:13) = 0.4.3-1 No fix listed
debian/lxml-html-clean(Debian:14) < 0.4.4-1 0.4.4-1
debian/lxml-html-clean(Debian:14) = 0.4.2-1 No fix listed
debian/lxml-html-clean(Debian:14) = 0.4.3-1 No fix listed
debian/lxml-html-clean(Debian:14) = 0.4.4-1~deb13u1 No fix listed
Show 4 more
ProductAffected versionsFixed in
ubuntu/lxml-html-clean(Ubuntu:24.04) All versions No fix listed
ubuntu/lxml-html-clean(Ubuntu:26.04) All versions No fix listed
ubuntu/lxml-html-clean(Ubuntu:26.10) All versions No fix listed
fedoralovespython lxml html clean < 0.4.4 0.4.4

References