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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-hw26-mmpg-fqfg exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/fedora-python/lxml_html_clean/commit/2ef732667ddbc74ea59847bcf24b75809aaeed3b patch
- github.com product
- github.com
- Debian Security Tracker CVE-2026-28348 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org