cve.bz

CVE-2026-41066 lxml lxml

7.5 highExploit referenceEPSS 0.3%Fix available

High (7.5) in lxml lxml. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in lxml 6.1.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-04-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41066 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41066?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41066?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41066 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
lxml:lxmlbefore 6.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vfmq-68hx-4jfwPyPIlxml<6.1.06.1.0
PYSEC-2026-87PyPIlxml<6.1.06.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12lxml4.9.2-1+deb12u1DEBIAN-CVE-2026-41066 DLA-4799-1
Debian13lxmlno fix listedDEBIAN-CVE-2026-41066
Debian14lxml6.1.0-1DEBIAN-CVE-2026-41066
Ubuntu22.04:LTSlxml4.8.0-1ubuntu0.1UBUNTU-CVE-2026-41066 USN-8897-1
Ubuntu24.04:LTSlxml5.2.1-1ubuntu0.2UBUNTU-CVE-2026-41066 USN-8897-1
Ubuntu25.10lxmlno fix listedUBUNTU-CVE-2026-41066
Ubuntu26.04:LTSlxml6.0.2-1ubuntu0.1UBUNTU-CVE-2026-41066 USN-8897-1
UbuntuPro:14.04:LTSlxml3.3.3-1ubuntu0.2+esm6UBUNTU-CVE-2026-41066 USN-8897-1
UbuntuPro:16.04:LTSlxml3.5.0-1ubuntu0.4+esm3UBUNTU-CVE-2026-41066 USN-8897-1
UbuntuPro:18.04:LTSlxml4.2.1-1ubuntu0.6+esm1UBUNTU-CVE-2026-41066 USN-8897-1
UbuntuPro:20.04:LTSlxml4.5.0-1ubuntu0.5+esm1UBUNTU-CVE-2026-41066 USN-8897-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
121 more for SUSE in the JSON and on SUSE's page.
openSUSETumbleweedpython-lxml6.1.0-1.1openSUSE-SU-2026:10596-1
Alpinev3.24py3-lxml6.1.0-r0ALPINE-CVE-2026-41066
Azure Linux3python-lxml4.9.3-2AZL-84038
Alpaquita25py3-lxml5.3.1-r1BELL-CVE-2026-41066
Alpaquitastreampy3-lxml6.1.0-r0BELL-CVE-2026-41066

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Applications using the lxml library to process untrusted XML input should explicitly configure the parser to prevent external entity resolution. This can be achieved by setting the `resolve_entities` option to `False` or `'internal'` when initializing the parser. For example, `etree.XML(xml_input, parser=etree.XMLParser(resolve_entities=False))` or `etree.HTML(html_input, parser=etree.HTMLParser(resolve_entities='internal'))`.

ProductPackageStateAdvisory
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Fix deferred
Pen Drive Powered by Red Hat Lightspeedpen-drive/pen-drive-scanner-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-supported-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/ee-supported-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/gateway-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/hub-rhel9Fix deferred
Red Hat Ansible Automation Platform 2automation-controllerFix deferred
Red Hat Enterprise Linux 10python-lxmlFix deferred
Red Hat Enterprise Linux 6python-lxmlFix deferred
Red Hat Enterprise Linux 7python-lxmlFix deferred
Red Hat Enterprise Linux 8python-lxmlFix deferred
Red Hat Enterprise Linux 9python-lxmlFix deferred
Red Hat Hardened Imagesabattis-cantarell-fontsNot affected
Red Hat Hardened ImagesjqNot affected
Red Hat Hardened Imagesmariadb11.8Not affected
Red Hat Hardened Imagespython3-mypyNot affected
Red Hat Hardened Imagespython-jsonschemaNot affected
Red Hat Hardened Imagespython-referencingNot affected
10 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41066.

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON