lxml — CVE history (PyPI)

lxml

7 CVEs affect the lxml PyPI package (highest CVSS 8.2). Latest disclosed: 2026-04-24. Full CVE history sourced from NVD.

Summary

Package
lxml (PyPI)
Total CVEs
7
Actively exploited (CISA KEV)
0
Highest CVSS
8.2
Latest disclosed
2026-04-24

Recent CVEs (top 7)

CVESeverityCVSSKEVPublishedSummary
CVE-2026-41066High7.52026-04-24lxml is a library for processing XML and HTML in the Python language.
CVE-2022-2309High7.52022-07-05NULL Pointer Dereference allows attackers to cause a denial of service (or application crash).
CVE-2021-43818High8.22021-12-13lxml is a library for processing XML and HTML in the Python language.
CVE-2021-28957Medium6.12021-03-21An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3.
CVE-2020-27783Medium6.12020-12-03A XSS vulnerability was discovered in python-lxml's clean module.
CVE-2018-19787Medium6.12018-12-02An issue was discovered in lxml before 4.2.5.
CVE-2014-3146Medium6.12014-05-14Incomplete blacklist vulnerability in the lxml.html.clean module in lxml before 3.3.5 allows remote attackers to conduct cross-site scripting (XSS) attacks via control characters in the link scheme to the clean_html function.

All-time worst (top 7 by CVSS)

CVESeverityCVSSKEVPublishedSummary
CVE-2021-43818High8.22021-12-13lxml is a library for processing XML and HTML in the Python language.
CVE-2026-41066High7.52026-04-24lxml is a library for processing XML and HTML in the Python language.
CVE-2022-2309High7.52022-07-05NULL Pointer Dereference allows attackers to cause a denial of service (or application crash).
CVE-2021-28957Medium6.12021-03-21An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3.
CVE-2020-27783Medium6.12020-12-03A XSS vulnerability was discovered in python-lxml's clean module.
CVE-2018-19787Medium6.12018-12-02An issue was discovered in lxml before 4.2.5.
CVE-2014-3146Medium6.12014-05-14Incomplete blacklist vulnerability in the lxml.html.clean module in lxml before 3.3.5 allows remote attackers to conduct cross-site scripting (XSS) attacks via control characters in the link scheme to the clean_html function.