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 April 27, 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
  • github.com/lxml/lxml/releases/tag/lxml-6.1.0
  • github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw
  • 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. Learn more about Dependency Scanning →

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 Sat, 09 May 2026 12:18:45 +0000.