ADVISORIES

CVE Program

CNA-CVE-2025-12084

Quadratic complexity in node ID cache clearing

Details

When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic. Availability can be impacted when building excessively nested documents.

Affected packages

EcosystemPackageAffected versions
Pythonpython
All versions before 3.10.20 (fixed in 3.10.20)
From 3.11.0 before 3.11.15 (fixed in 3.11.15)
From 3.12.0 before 3.12.13 (fixed in 3.12.13)
From 3.13.0 before 3.13.11 (fixed in 3.13.11)
From 3.14.0 before 3.14.2 (fixed in 3.14.2)
From 3.15.0a1 before 3.15.0a3 (fixed in 3.15.0a3)

References