ADVISORIES

Vulnerability

CVE-2026-41066

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.

80 advisories report this vulnerability, across 12 ecosystems.

Advisories in PyPI

  • GHSA-vfmq-68hx-4jfw

    lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

    High CVE-2026-41066 PyPI Updated 10 September 2026
  • PYSEC-2026-87

    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…

    CVE-2026-41066 PyPI Updated 20 May 2026

References