CVE-2026-41066: lxml · Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
Affects rockcraftSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 1.17.2_2 soon.
Data as of 1 Dec 2026, 20:03 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 1.17.2_2, 6.1.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade rockcraft to 1.17.2_2; lxml to 6.1.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewrockcraftpkg:brew/rockcraftOther threats | Affected
| Fixed in
|
PyPIlxmlpkg:pypi/lxmlOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should upgrade to rockcraft version 1.17.2_2 or later, where the fix is implemented. Alternatively, explicitly setting the resolve_entities option to 'internal' or False in iterparse() and ETCompatXMLParser() disables local file access and mitigates the vulnerability. No other actions are required if these mitigations are applied.
Description
The lxml library's iterparse() and ETCompatXMLParser() functions, when used with their default configuration (resolve_entities=True), allow untrusted XML input to read local files, leading to a potential XML External Entity (XXE) vulnerability. This issue is addressed in lxml version 6.1.0, which changes the default to resolve_entities='internal', preventing local file access by default. Versions of the affected product rockcraft from 1.16.0 up to but not including 1.17.2_2 are vulnerable.
References
- github.com/lxml/lxml/security/advisories/GHSA-vfmq-68hx-4jfw (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-41066 (opens in a new tab)
- bugs.launchpad.net/lxml/+bug/2146291 (opens in a new tab)
- github.com/lxml/lxml (opens in a new tab)
- github.com/lxml/lxml/releases/tag/lxml-6.1.0 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2026-87.yaml (opens in a new tab)