{"id":"CVE-2026-28348","published":"2026-03-05T19:49:26Z","modified":"2026-03-06T17:55:36Z","title":"lxml_html_clean: CSS @import Filter Bypass via Unicode Escapes","vendor":"fedora-python","product":"lxml_html_clean","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00282,"percentile":0.21155,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-hw26-mmpg-fqfg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fedora-python/lxml_html_clean/commit/2ef732667ddbc74ea59847bcf24b75809aaeed3b","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.23},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"fedora-python","affectedVersions":[{"vendor":"fedora-python","product":"lxml_html_clean","versions":["< 0.4.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-06T17:55:33.114241Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lxml-html-clean","vulnerableRanges":["<0.4.4"],"patched":["0.4.4"],"from":["GHSA-hw26-mmpg-fqfg","PYSEC-2026-2201"],"provenance":"source"}],"summary":{"text":"The lxml_html_clean project's HTML cleaning component, specifically the _has_sneaky_javascript() check, fails to handle CSS Unicode escape sequences: it strips backslashes before checking for dangerous CSS keywords, so escaped forms of @import and expression() get past the filter. An remote attacker who can get a victim to process crafted HTML, requiring user interaction and no authentication, could cause external CSS to be loaded or achieve cross-site scripting in older browsers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:47Z"},"euvd":{"id":"EUVD-2026-9868","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fedora-python-lxml-html-clean-cve-2024-52595","parents":[{"from":"CVE-2024-52595","to":"CVE-2026-28348","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:lxml-html-clean","fromFixed":"0.4.0","toFixed":"0.4.4","daysApart":471},{"kind":"same-code","provenance":"machine","files":["lxml_html_clean/clean.py"],"commits":["https://github.com/fedora-python/lxml_html_clean/commit/c5d816f86eb3707d72a8ecf5f3823e0daa1b3808","https://github.com/fedora-python/lxml_html_clean/commit/2ef732667ddbc74ea59847bcf24b75809aaeed3b"],"basis":"shared function","functions":["_has_sneaky_javascript"]}]}],"children":[{"from":"CVE-2026-28348","to":"CVE-2026-28350","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lxml_html_clean/clean.py"],"commits":["https://github.com/fedora-python/lxml_html_clean/commit/2ef732667ddbc74ea59847bcf24b75809aaeed3b","https://github.com/fedora-python/lxml_html_clean/commit/9c5612ca33b941eec4178abf8a5294b103403f34"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2024-52595","published":"2024-11-19","fixed":"0.4.0","kev":false},{"cve":"CVE-2026-28348","published":"2026-03-05","fixed":"0.4.4","kev":false},{"cve":"CVE-2026-28350","published":"2026-03-05","fixed":"0.4.4","kev":false}],"package":"PyPI:lxml-html-clean"}}