Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. lxml
  4. ›
  5. CVE-2026-41066

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

April 21, 2026 (updated June 6, 2026)

Using either of the two parsers in the default configuration (with resolve_entities=True) allows untrusted XML input to read local files.

References

  • bugs.launchpad.net/lxml/+bug/2146291
  • github.com/advisories/GHSA-vfmq-68hx-4jfw
  • github.com/lxml/lxml/releases/tag/lxml-6.1.0
  • github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw
  • github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2026-87.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-41066

Code Behaviors & Features

Detect and mitigate CVE-2026-41066 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.1.0

Fixed versions

  • 6.1.0

Solution

Upgrade to version 6.1.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

pypi/lxml/CVE-2026-41066.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:11 +0000.