Advisory

PYSEC-2021-852

Also known as: CVE-2021-43818, GHSA-55x5-fj6c-h6m8

Summary

The record has no summary.

Details

lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, 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 to receive a patch. There are no known workarounds available.

Severity

Not rated by the source.

Dates

Published
2021-12-13 18:15 UTC
Modified
2026-04-09 18:24 UTC

Affected packages and fixes

lxml

PyPI · All systems

Affected

  • introduced 0, fixed 4.6.5 (ecosystem)

Fixed versions

4.6.5

Fix

  • Fixed version 4.6.5
    pip install --upgrade lxml==4.6.5

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