# lxml (PyPI)

Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.

- Latest: 6.2.1 (2026-11-29)
- Licence: BSD-3-Clause
- Downloads: 443238962 last month
- Advisories on the latest version: 0

- CVE-2026-41066 :  Fixed in 6.1.0.
- CVE-2026-41066 HIGH: lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files Fixed in 6.1.0.
- CVE-2022-2309 MODERATE: lxml NULL Pointer Dereference allows attackers to cause a denial of service Fixed in 4.9.1.
- CVE-2022-2309 :  Fixed in 4.9.1.
- CVE-2014-3146 MODERATE: lxml Cross-site Scripting Via Control Characters Fixed in 3.3.5.
- CVE-2018-19787 MODERATE: Improper Neutralization of Input During Web Page Generation in LXML Fixed in 4.2.5.
- CVE-2021-43818 MODERATE: lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through Fixed in 4.6.5.
- CVE-2021-43818 :  Fixed in 4.6.5.
- CVE-2021-28957 MODERATE: lxml vulnerable to Cross-Site Scripting  Fixed in 4.6.3.
- CVE-2021-28957 :  Fixed in 4.6.3.
- CVE-2020-27783 MODERATE: lxml vulnerable to Cross-site Scripting Fixed in 4.6.2.
- CVE-2020-27783 :  Fixed in 4.6.2.
- CVE-2018-19787 :  Fixed in 4.2.5.
- CVE-2014-3146 :  Fixed in 3.3.5.

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
