{"id":"DHI-3fhf-wfff-o7tx-w77e","aliases":[],"title":"`Element.findall()` and fully-consumed `Element.iterfind()` exhibit `O(n^2)` time complexity when using XPath index…","originalDescription":"`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.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.11","range":">=0, <3.11.15-r12","fixed":"3.11.15-r12"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.12","range":">=0, <3.12.13-r12","fixed":"3.12.13-r12"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.13","range":">=0, <3.13.14-r3","fixed":"3.13.14-r3"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.14","range":">=0, <3.14.6-r12","fixed":"3.14.6-r12"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","name":"python-3.15","range":">=0, <3.15.0-r0","fixed":"3.15.0-r0"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.11","range":">=0, <3.11.15-r4","fixed":"3.11.15-r4"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.12","range":">=0, <3.12.13-r4","fixed":"3.12.13-r4"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.13","range":">=0, <3.13.14-r3","fixed":"3.13.14-r3"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","name":"python-3.14","range":">=0, <3.14.6-r3","fixed":"3.14.6-r3"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.11","range":">=0, <3.11.15-12","fixed":"3.11.15-12"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.12","range":">=0, <3.12.13-12","fixed":"3.12.13-12"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.13","range":">=0, <3.13.14-4","fixed":"3.13.14-4"},{"ecosystem":"Docker Hardened Images:Debian:13","name":"python-3.14","range":">=0, <3.14.6-6","fixed":"3.14.6-6"}],"references":[{"url":"https://scout.docker.com/v/DHI-3fhf-wfff-o7tx-w77e","type":"advisory"},{"url":"https://github.com/python/cpython/pull/152676","type":"fix"},{"url":"https://github.com/python/cpython/commit/cb409342a19f25656f62e679f8bac265fe1442c3","type":"fix"},{"url":"https://github.com/python/cpython/commit/96510a3758f4a075f43223afdee3b6ee1a7a7f02","type":"fix"},{"url":"https://github.com/python/cpython/commit/390337b8ba1658833fdef379e1739c9f9533a8db","type":"fix"},{"url":"https://github.com/python/cpython/commit/2ffab083782968a4d732738f4f1dff6bbd69d2b0","type":"fix"},{"url":"https://github.com/python/cpython/commit/0583f24ae678993e3f7939f51ad5bcae5ad9dc70","type":"fix"},{"url":"https://github.com/python/cpython/commit/037965c00a427cba5c05447efadc67c51a492e85","type":"fix"},{"url":"https://github.com/python/cpython/commit/02c08e6b747ac43d0d866a4ffa916bedf3423f81","type":"fix"},{"url":"https://github.com/python/cpython/issues/152674","type":"web"},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-6879","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2122.html","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-6879","type":"advisory"},{"url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-18503","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2123.html","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2124.html","type":"advisory"},{"url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2125.html","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6879","type":"advisory"},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-6879","type":"advisory"},{"url":"https://ubuntu.com/security/CVE-2026-6879","type":"advisory"},{"url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-6879","type":"advisory"}],"sources":[{"name":"osv","at":"2026-11-28T19:24:52.597Z","url":"https://osv.dev/vulnerability/DHI-3fhf-wfff-o7tx-w77e","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T22:19:48.676Z"}],"firstSeenAt":"2026-11-19T22:19:48.676Z","publishedAt":"2026-11-19T22:11:01.000Z","modifiedAt":"2026-11-28T18:00:02.952Z"}