CVE-2026-41066

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

Published Apr 24, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4799-1 lxml security update
Github GHSA Github GHSA GHSA-vfmq-68hx-4jfw lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
History
Type Values Removed Values Added
First Time appeared Lxml
Lxml lxml
CPEs cpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:*
Vendors & Products Lxml
Lxml lxml
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
Weaknesses CWE-611
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 24, 2026, 6:04 PM
Reserved
Apr 16, 2026, 4:43 PM
Status
Analyzed
Published
Apr 24, 2026, 5:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 24, 2026, 4:45 PM