Advisory

PYSEC-2026-2201

Also known as: CVE-2026-28348, GHSA-hw26-mmpg-fqfg

Summary

The record has no summary.

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.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-03-05 20:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

lxml-html-clean

PyPI · All systems

Affected

  • introduced 0, fixed 0.4.4 (ecosystem)

Fixed versions

0.4.4

Fix

  • Fixed version 0.4.4
    pip install --upgrade lxml-html-clean==0.4.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences