XML External Entity injection in Lxml - CVE-2026-41066
Published: April 20, 2026
Lxml
Detailed vulnerability description
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to improper restriction of xml external entity reference in iterparse() and ETCompatXMLParser() when parsing untrusted XML input. A remote attacker can send specially crafted XML input to disclose sensitive information.
The issue occurs when these parsers are used in the default configuration with resolve_entities=True.