CVE-2026-41066
HIGH 7.5CVSS 3.1lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
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.
- Published
- 24 Apr 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-611
- Also known as
- GHSA-vfmq-68hx-4jfwPYSEC-2026-87
- Sources
- NVDJSONOSV GHSA-vfmq-68hx-4jfwJSONOSV PYSEC-2026-87JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lxml | lxmlcpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:* |
< 6.1.0 | 6.1.0 |
| OSV | PyPI | lxml | < 6.1.0 | 6.1.0 |
References
- https://bugs.launchpad.net/lxml/+bug/2146291 · Exploit, Issue Tracking, Third Party Advisory, WEB, REPORT
- https://github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-41066 · ADVISORY
- https://github.com/lxml/lxml · PACKAGE
- https://github.com/lxml/lxml/releases/tag/lxml-6.1.0 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2026-87.yaml · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Apr 2026)