CVE-2026-41066
lxml is a library for processing XML and HTML in the Python …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw
- bugs.launchpad.net/lxml/+bug/2146291
- github.com/lxml/lxml/releases/tag/lxml-6.1.0
- github.com/advisories/GHSA-vfmq-68hx-4jfw
- nvd.nist.gov/vuln/detail/CVE-2026-41066
- github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2026-87.yaml
- nvd.nist.gov/vuln/detail/CVE-2026-41066
- cve.org/CVERecord?id=CVE-2026-41066
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.