Skip to main content
VulnerabilityPublished Updated

CVE-2026-41066: lxml · Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

Affects ansibleSource GCVE Database

0
Compare
Authoritative record:CVE-2026-41066· High 7.5

Not known to be exploited · CVSS 7.5 High · fixed in 13.5.0_2 : patch ansible soon.

Data as of 4 Dec 2026, 20:00 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
Patch
Available – fixed in 13.5.0_2, 8.4.0, 2.1.2.0 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 4 Dec 2026.

What to do

Upgrade ansible to 13.5.0_2, 8.4.0 or 2.1.2.0; lxml to 6.1.0.

Affected software

ProductAffectedFixed in
Homebrewansiblepkg:brew/ansibleOther threatsAffected
  • >=1.9.2 <2.1.2.0
  • >=2.3.0.0_2 <8.4.0
  • >=9.2.0 <13.5.0_2
Fixed in
  • 2.1.2.0
  • 8.4.0
  • 13.5.0_2
PyPIlxmlpkg:pypi/lxmlOther threatsAffected
  • <6.1.0
Fixed in
  • 6.1.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

### Impact Using either of the two parsers in the default configuration (with `resolve_entities=True`) allows untrusted XML input to read local files. ### Patches lxml 6.1.0 changes the default to `resolve_entities='internal'`, thus disallowing local file access by default. ### Workarounds Setting the `resolve_entities` option explicitly to `resolve_entities='internal'` or `resolve_entities=False` disables the local file access. ### Resources Original report: https://bugs.launchpad.net/lxml/+bug/2146291 The default option was changed to `resolve_entities='internal'` for the normal XML and HTML parsers in lxml 5.0. The default was not changed for `iterparse()` and `ETCompatXMLParser()` at the time. lxml 6.1 makes the safe option the default for all parsers.

References

Community reviews

Loading reviews…