CVE-2026-6879: Quadratic Behavior in xml.etree.ElementPath Index Predicates

Published Jul 28, 2026
·
Updated

Element.findall() and fully-consumed Element.iterfind() exhibit O(n^2) time complexity when using XPath index predicates (e.g. [1], [last()], [last()-N]) on XML documents with many same-tag siblings. Element.find() is only affected when the first match is near the end  of the sibling list, such as with [last()] or [last()-N];  .//item[1] short-circuits after the first match.

Other sources

Quadratic Behavior in xml.etree.ElementPath Index Predicates

Microsoft

Affected Software

3 affected componentsFixes available
xml.etree.ElementPath
Microsoft azl3 python3 3.12.9-13<3.12.9-14
3.12.9-14
Microsoft azl3 python3 3.12.9-14<3.12.9-14
3.12.9-14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.12.9-14

Event History

Jul 28, 2026
CVE Published
via MITRE·01:46 PM
Data Sourced
via MITRE·01:46 PM
Description
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Aug 7, 2026
Data Sourced
via Microsoft·07:54 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·07:54 AM
DescriptionSeverity
Updated
via Microsoft·07:54 AM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-6879?

CVE-2026-6879 has been assigned a risk score of 20, indicating a significant vulnerability.

2

How do I fix CVE-2026-6879?

To mitigate CVE-2026-6879, consider optimizing your XPath queries to avoid heavy use of index predicates on documents with many same-tag siblings.

3

What components are affected by CVE-2026-6879?

CVE-2026-6879 specifically affects the xml.etree.ElementPath module used in XML parsing.

4

What is the impact of CVE-2026-6879 on performance?

CVE-2026-6879 leads to O(n^2) time complexity, which can significantly degrade performance when processing large XML documents.

5

When was CVE-2026-6879 published?

CVE-2026-6879 was published on July 28, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203