PyPI package
lxml vulnerabilities by version
The latest release, 6.1.3 (Sep 2, 2026), has no known vulnerabilities. 6 of the 10 most recent releases have known vulnerabilities. OSV.dev lists 7 advisories for lxml; the newest was published on Apr 21, 2026.
PyPI (opens in a new tab) describes it as “Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.”
- Latest release
- 6.1.3
- Sep 2, 2026, no known vulnerabilities
- Downloads last week
- 89.1M
- All versions, from pypistats.org
- Advisories on OSV.dev
- 7
- Newest Apr 21, 2026
- Licence
- BSD-3-Clause
Recent releases
PyPI doesn’t publish downloads per version, so these are the newest releases, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.
Release lines
The newest release of each minor line, from the registry. lxml doesn’t publish support dates we can check.
Newest advisories
The 5 most recently published, with the versions each one affects.
CriticalCVE-2026-41066 on OSV.dev (opens in a new tab)GHSA-vfmq-68hx-4jfw
lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
Affects < 6.1.0. Published Apr 21, 2026.
WarningCVE-2022-2309 on OSV.dev (opens in a new tab)GHSA-wrxv-2j5q-m38w
lxml NULL Pointer Dereference allows attackers to cause a denial of service
Affects < 4.9.1. Published Jul 6, 2022.
WarningCVE-2014-3146 on OSV.dev (opens in a new tab)GHSA-57qw-cc2g-pv5p
lxml Cross-site Scripting Via Control Characters
Affects < 3.3.5. Published May 14, 2022.
WarningCVE-2018-19787 on OSV.dev (opens in a new tab)GHSA-xp26-p53h-6h2p
Improper Neutralization of Input During Web Page Generation in LXML
Affects < 4.2.5. Published May 13, 2022.
WarningCVE-2021-43818 on OSV.dev (opens in a new tab)GHSA-55x5-fj6c-h6m8
lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through
Affects < 4.6.5. Published Dec 13, 2021.
All 7 advisories are on OSV.dev (opens in a new tab).
Which lxml do you have?
Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.
How this page is checked
StackPrism reads every OSV.dev advisory for lxml, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from pypistats.org. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against OSV.dev, CISA KEV, PyPI, pypistats.org and deps.dev.