CVE-2026-41066

published 24 Apr 2026 · updated 11 Nov 2026

lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

8.5HighCVSS 7.5EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 6.1.0.

lxml is a library for processing XML and HTML in the Python language. Prior to 6.1.0, using either of the two parsers in the default configuration (with resolve_entities=True) allows untrusted XML input to read local files. Setting the resolve_entities option explicitly to resolve_entities='internal' or resolve_entities=False disables the local file access. This vulnerability is fixed in 6.1.0.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
lxmllxml<6.1.06.1.0
lxml<6.1.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-41066 severity on Zeptric[![CVE-2026-41066](https://zeptric.io/badge/cve/CVE-2026-41066.svg)](https://zeptric.io/cve/CVE-2026-41066)