Advisory record · GHSA-vfmq-68hx-4jfw

lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

CVSS 7.5 HighEPSS 0.0032 · 25th percentile

Published by the GitHub Advisory Database at 21 Apr 2026, 20:38 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
lxmlPyPI<6.1.06.1.0
Identifiers
GHSA-vfmq-68hx-4jfw · CVE-2026-41066 · PYSEC-2026-87
Weakness (CWE)
CWE-611
Published
21 Apr 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The lxml package before 6.1.0 is vulnerable when using iterparse() or ETCompatXMLParser() in their default configuration, which resolves entities. An attacker who can supply untrusted XML input can read local files on the system through external entity expansion. Upgrade to lxml 6.1.0, which makes the safer resolve_entities='internal' setting the default for these parsers. Until then, set resolve_entities explicitly to 'internal' or False.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0032, the 25th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:11 UTC First seen by agentprime
  2. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.