lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 14 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-611 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| lxml | lxml | before 6.1.0 | 6.1.0 | Patch available | CNA |
| — | lxml (PyPI) | before 6.1.0 | 6.1.0 | Patch available | GHSA-vfmq-68hx-4jfw |
- lxml Vendorlxml Affected before 6.1.0 Fixed in 6.1.0 Patch available CNA
- lxml (PyPI) Vendor— Affected before 6.1.0 Fixed in 6.1.0 Patch available GHSA-vfmq-68hx-4jfw
Remediation
- Fix · CNA lxml (lxml) Fixed in 6.1.0
- Fix · GHSA-vfmq-68hx-4jfw lxml (PyPI) Fixed in 6.1.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Applications 8 | Affected | No fix yet: Fix deferred |
| Pen Drive Powered by Red Hat Lightspeed | Affected | No fix yet: Fix deferred |
| Red Hat AI Inference Server | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 6 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat Quay 3 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Red Hat Update Infrastructure 4 for Cloud Providers | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41066
- 2026-10-03 Alias added: GHSA-vfmq-68hx-4jfw
References
Advisory 2
More Lxml vulnerabilities
- TI-2021-19624 HTML Cleaner allows crafted and SVG embedded scripts to pass through CVSS 3.1HIGH 8.2
- TI-2022-02132 NULL Pointer Dereference in lxml/lxml CVSS 3.1HIGH 7.5
- TI-2014-02511 Incomplete blacklist vulnerability in the lxml.html.clean module in lxml before 3.3.5… CVSS 3.1MEDIUM 6.1
- TI-2021-09882 An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. CVSS 3.1MEDIUM 6.1
- TI-2020-16868 Cross-site scripting in python-lxml CVSS 3.1MEDIUM 6.1
- TI-2018-14010 An issue was discovered in lxml before 4.2.5. CVSS 3.1MEDIUM 6.1
Sources
- CVE-2026-41066 · CVE Program
- CVE-2026-41066 · NVD
- FIRST EPSS
- GHSA-vfmq-68hx-4jfw · GitHub Advisory Database · CC BY 4.0
- CVE-2026-41066 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences