# CVE-2026-41066: lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-21T20:38:44.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-vfmq-68hx-4jfw, PYSEC-2026-87
- Weaknesses: CWE-611
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lxml lxml: < 6.1.0; before 6.1.0
- lxml (PyPI): before 6.1.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://bugs.launchpad.net/lxml/+bug/2146291> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw> (advisory, mitigation, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2026-41066](https://www.cve.org/CVERecord?id=CVE-2026-41066), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-vfmq-68hx-4jfw](https://github.com/advisories/GHSA-vfmq-68hx-4jfw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41066](https://nvd.nist.gov/vuln/detail/CVE-2026-41066), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-87](https://osv.dev/vulnerability/PYSEC-2026-87), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-41066 · Whole record: https://cve.day/CVE-2026-41066.json · Rebuilt by cve.day 2026-11-25T22:59:19.547Z
