ADVISORIES

Debian Security Tracker

DEBIAN-CVE-2026-6879

Details

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 packages

EcosystemPackageAffected versions
Debian:12pypy3
All versions, no fix listed
Debian:13pypy3
All versions, no fix listed
Debian:14pypy3
All versions before 8.0.0+dfsg-1 (fixed in 8.0.0+dfsg-1)
Debian:12python3.11
All versions, no fix listed
Debian:13python3.13
All versions before 3.13.5-2+deb13u5 (fixed in 3.13.5-2+deb13u5)
Debian:14python3.14
All versions before 3.14.7-1 (fixed in 3.14.7-1)

References