CVE-2026-6879

Quadratic Behavior in xml.etree.ElementPath Index Predicates

`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.


We have discovered 458 live websites that are affected by CVE-2026-6879.

Run a Free Instant Scan




Affected Software

Product  CPython
Category Programming Languages
Vulnerable Domains458 live websites (100% of CPython install base)
Vulnerable Versions
  • from 0 through 3.15
Vulnerable Versions Count69 versions ( 100% of all versions)



Details

  • Published - Jul 28, 2026
  • Updated - Jul 30, 2026

Credits

  • dm (https://github.com/DarkaMaul) (reporter)
  • Petr Viktorin (https://github.com/encukou) (coordinator)

Website Distribution by Country

Number of websites using CVE-2026-6879
United States147 websites



Germany62 websites
Singapore28 websites
France24 websites
India20 websites
China14 websites
Russia12 websites
Switzerland10 websites
GB10 websites
Brazil9 websites

Website Distribution by TLD

Number of websites using CVE-2026-6879
.com161 websites
.org40 websites
.dk24 websites
.net22 websites
.de21 websites
.fr9 websites
.ch8 websites
.edu8 websites
.nl7 websites
.cz6 websites

Vulnerable Versions

Vulnerable versions are highlighted in red

Websites affected by CVE-2026-6879

Top websites that are affected by CVE-2026-6879. Please click on the "Contact us" link to get more information.
DomainCountryRankContacts
**********.com United States**,***
*********.com Netherlands***,***
*******.***.org Germany***,***
*****.org Germany***,***
****.***********.***.au Australia***,***
*************.com United States***,***
*****.*****.de Germany***,***
********.***.***.gr Greece***,***
***.********.it Italy***,***
***************.de Germany*,***,***
See full domain list

FAQ

A total of 458 websites have been identified as vulnerable to CVE-2026-6879, based on global website indexing conducted by WebTechSurvey.
The CPython is affected by the CVE-2026-6879 vulnerability.
CPython versions up to 3.15 are vulnerable to CVE-2026-6879.
CVE-2026-6879 is resolved in version 3.15 of CPython.