ADVISORIES

GitHub Advisory Database

GHSA-55x5-fj6c-h6m8

lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through

Details

Impact

The HTML Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG files embedded using data URIs.

Users that employ the HTML cleaner in a security relevant context should upgrade to lxml 4.6.5.

Patches

The issue has been resolved in lxml 4.6.5.

Workarounds

None.

References

The issues are tracked under the report IDs GHSL-2021-1037 and GHSL-2021-1038.

Affected packages

EcosystemPackageAffected versions
PyPIlxml
All versions before 4.6.5 (fixed in 4.6.5)

References