PyPI package
lxml 5.3.0 vulnerability, and the version that fixes it
lxml 5.3.0 has 1 known vulnerability (1 rated high or critical); 6.1.0 fixes it.
PyPI (opens in a new tab) describes it as “Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.”
- Known vulnerabilities
- 1
- 1 rated high or critical
- Released
- Aug 10, 2024
- Latest is 6.1.3
- Licence
- BSD-3-Clause
- Dependencies
- None
- Resolved by deps.dev
What to upgrade to
6.1.0 is the closest release with no known vulnerabilities.
Newest 5.x release. Released Apr 23, 2025.
1 known vulnerability, worst rated warning6.1.0Upgrade to this
Fixes the known vulnerability. Released Apr 18, 2026.
No known vulnerabilitiesLatest release. Released Sep 2, 2026.
No known vulnerabilities
6.1.0 came out on Apr 18, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
CVE-2026-41066 in lxml 5.3.0
EPSS: top 77%lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files. Fixed in 6.1.0.
- LowOutdated
lxml 5.3.0 is 1 major version behind
Latest release is 6.1.3.
Every advisory for lxml 5.3.0
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2026-41066 on OSV.dev (opens in a new tab)GHSA-vfmq-68hx-4jfwEPSS: top 77%
lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
Fixed in 6.1.0. Published Apr 21, 2026.
Is lxml the only one?
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. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly lxml 5.3.0, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and PyPI. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against PyPI, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.