{"id":"CVE-2026-41066","aliases":["CVE-2026-41066","GHSA-vfmq-68hx-4jfw","PYSEC-2026-87"],"related":[],"kind":"vulnerability","state":"published","title":"lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nUsing either of the two parsers in the default configuration (with `resolve_entities=True`) allows untrusted XML input to read local files.\n\n### Patches\nlxml 6.1.0 changes the default to `resolve_entities='internal'`, thus disallowing local file access by default.\n\n### Workarounds\nSetting the `resolve_entities` option explicitly to `resolve_entities='internal'` or `resolve_entities=False` disables the local file access.\n\n### Resources\nOriginal report: https://bugs.launchpad.net/lxml/+bug/2146291\n\nThe default option was changed to `resolve_entities='internal'` for the normal XML and HTML parsers in lxml 5.0. The default was not changed for `iterparse()` and `ETCompatXMLParser()` at the time. lxml 6.1 makes the safe option the default for all parsers.","format":"markdown","source":"ghsa"},{"lang":"es","text":"lxml es una biblioteca para procesar XML y HTML en el lenguaje Python. Anterior a 6.1.0, el uso de cualquiera de los dos analizadores en la configuración predeterminada (con resolve_entities=True) permite que una entrada XML no confiable lea archivos locales. Establecer la opción resolve_entities explícitamente a resolve_entities=’internal’ o resolve_entities=False deshabilita el acceso a archivos locales. Esta vulnerabilidad se corrige en 6.1.0.","source":"nvd"}],"published":"2026-04-21T20:38:44.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-611"],"affected":[{"ranges":[{"version":"< 6.1.0","status":"affected"}],"vendor":"lxml","product":"lxml","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.1.0"}],"ecosystem":"PyPI","package":"lxml","purl":"pkg:pypi/lxml","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.1.0"}],"vendor":"lxml","product":"lxml","cpe":"cpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.1.0"}],"ecosystem":"PyPI","package":"lxml","purl":"pkg:pypi/lxml","source":"pysec"}],"references":[{"url":"https://github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugs.launchpad.net/lxml/+bug/2146291","tags":["exploit","issue-tracking","report","third-party-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41066","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lxml/lxml","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/lxml/lxml/releases/tag/lxml-6.1.0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2026-87.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-24T18:03:40.722Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41066","url":"https://www.cve.org/CVERecord?id=CVE-2026-41066","licence":"CVE Terms of Use","modified":"2026-04-24T18:04:04.548Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vfmq-68hx-4jfw","url":"https://github.com/advisories/GHSA-vfmq-68hx-4jfw","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:03.302Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41066","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41066","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-87","url":"https://osv.dev/vulnerability/PYSEC-2026-87","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:06.179Z"}],"updatedAt":"2026-11-25T22:59:19.547Z","epss":{"score":0.00326,"percentile":0.27775,"date":"2026-12-01T12:00:22.000Z"}}