CVE-2026-41066: lxml · Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files
Affects standardebooksSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 3.0.4 soon.
Data as of 22 Nov 2026, 18:22 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 3.0.4
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 21 Nov 2026.
What to do
Upgrade standardebooks to 3.0.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewstandardebookspkg:brew/standardebooksOther 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
A patch is available in lxml version 3.0.4 which changes the default resolve_entities setting to 'internal', preventing local file access by default. Users should upgrade to version 3.0.4 or later. Alternatively, explicitly set the resolve_entities option to 'internal' or false in the iterparse() and ETCompatXMLParser() functions to disable local file access. No other actions are required if patched or configured accordingly.
Description
CVE-2026-41066 is a vulnerability in the lxml library where the default configuration of the iterparse() and ETCompatXMLParser() functions allows XML External Entity (XXE) attacks that can read local files. This occurs because the default setting for resolve_entities is true, enabling entity resolution that can access local files. The issue affects lxml versions from 2.9.2 up to but not including 3.0.4. The vulnerability is fixed in version 3.0.4, which changes the default to resolve_entities='internal', preventing local file access by default.
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)