CVE-2026-41066CWE-611

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

High · published April 24, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
24.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00324 · 24.3th percentile
Weakness
CWE-611 · Improper Restriction of XML External Entity Reference
Published
2026-04-24T16:45Z
EPSS history
Timeline
  • 24 APR 16:45Z
    lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
    cvelistv5