cbcvebase.
CVE-2026-6879
published 2026-07-28

CVE-2026-6879: `Element.findall()` and fully-consumed `Element.iterfind()` exhibit `O(n^2)` time complexity when using XPath index predicates (e.g. `[1]`, `[last()]`…

PriorityP413low2CVSS 4.0
AVNACHATPPRHUIPVCNVINVALSCNSINSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
EPSS
0.37%
29.6th percentile
`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.

Affected

6 ranges
VendorProductVersion rangeFixed in
python_software_foundationcpython< 3.10.213.10.21
python_software_foundationcpython>= 3.11.0 < 3.11.163.11.16
python_software_foundationcpython>= 3.12.0 < 3.12.143.12.14
python_software_foundationcpython>= 3.13.0 < 3.13.153.13.15
python_software_foundationcpython>= 3.14.0 < 3.14.73.14.7
python_software_foundationcpython>= 3.15.0a1 < 3.15.0rc13.15.0rc1

CVSS provenance

nvdv4.02.0LOWCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vendor_redhat2.0LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.