Vulnerability · Published Apr 24, 2026 · Assigned by GitHub_M
CVE-2026-41066lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
High 7.5
In plain English
A high-severity XML external entity in lxml from lxml. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | py3-lxml | 6.1.0-r0 | ALPINE-CVE-2026-41066 |
| Debian:12 | lxml | 4.9.2-1+deb12u1 | DEBIAN-CVE-2026-41066 |
| Debian:13 | lxml | no fix listed | DEBIAN-CVE-2026-41066 |
| Debian:14 | lxml | 6.1.0-1 | DEBIAN-CVE-2026-41066 |
| PyPI | lxml | 6.1.0 | GHSA-vfmq-68hx-4jfw |
| PyPI | lxml | 6.1.0 | PYSEC-2026-87 |
| Ubuntu:22.04:LTS | lxml | 4.8.0-1ubuntu0.1 | USN-8897-1 |
| Ubuntu:22.04:LTS | lxml | 4.8.0-1ubuntu0.1 | UBUNTU-CVE-2026-41066 |
| Ubuntu:24.04:LTS | lxml | 5.2.1-1ubuntu0.2 | USN-8897-1 |
| Ubuntu:24.04:LTS | lxml | 5.2.1-1ubuntu0.2 | UBUNTU-CVE-2026-41066 |
| Ubuntu:25.10 | lxml | no fix listed | UBUNTU-CVE-2026-41066 |
| Ubuntu:26.04:LTS | lxml | 6.0.2-1ubuntu0.1 | UBUNTU-CVE-2026-41066 |
| Ubuntu:26.04:LTS | lxml | 6.0.2-1ubuntu0.1 | USN-8897-1 |
Affected products (as reported)
Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw x_refsource_CONFIRM
- https://bugs.launchpad.net/lxml/+bug/2146291 x_refsource_MISC