# lxml (PyPI) vulnerabilities

7 known vulnerabilities (2 high, 5 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Weekly downloads: 106.7M
- Dependents: 28.7K
- Registry: https://pypi.org/project/lxml/

## Advisories (7)

### [CVE-2026-41066](https://cve.now/CVE-2026-41066): lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

- Severity: High 7.5
- Published: Apr 24, 2026
- Affected: fixed in 6.1.0.

### [CVE-2022-2309](https://cve.now/CVE-2022-2309): NULL Pointer Dereference in lxml/lxml

- Severity: Medium 5.3
- Published: Jul 5, 2022
- Affected: fixed in 4.9.1; fixed in 4.9.1.

### [CVE-2021-43818](https://cve.now/CVE-2021-43818): HTML Cleaner allows crafted and SVG embedded scripts to pass through

- Severity: High 8.2
- Published: Dec 13, 2021
- Affected: fixed in 4.6.5; fixed in 4.6.5.

### [CVE-2021-28957](https://cve.now/CVE-2021-28957): An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3.

- Severity: Medium 6.1
- Published: Mar 21, 2021
- Affected: fixed in 4.6.3; fixed in 4.6.3.

### [CVE-2020-27783](https://cve.now/CVE-2020-27783): A XSS vulnerability was discovered in python-lxml's clean module.

- Severity: Medium 6.1
- Published: Dec 3, 2020
- Affected: from 1.2, fixed in 4.6.2; fixed in 4.6.2.

### [CVE-2018-19787](https://cve.now/CVE-2018-19787): An issue was discovered in lxml before 4.2.5.

- Severity: Medium 6.1
- Published: Dec 2, 2018
- Affected: fixed in 4.2.5; fixed in 4.2.5.

### [CVE-2014-3146](https://cve.now/CVE-2014-3146): Incomplete blacklist vulnerability in the lxml.html.clean module in lxml before 3.3.5 allows remote attackers to conduct cross-site…

- Severity: Medium 6.1
- Published: May 14, 2014
- Affected: fixed in 3.3.5; fixed in 3.3.5.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/pypi/lxml
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
