VDB
Sign up
MEDIUM6.1

PYSEC-2026-2201

Quick fix

PYSEC-2026-2201 — lxml-html-clean: upgrade to the fixed version with the command below.

pip install --upgrade 'lxml-html-clean>=0.4.4'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/lxml-html-clean
Introduced in: 0Fixed in: 0.4.4
Fixpip install --upgrade 'lxml-html-clean>=0.4.4'

References