What’s Vulnerable › Vulnerabilities

CVE-2025-12084: Quadratic complexity in node ID cache clearing

Description

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 products

How to fix

Upgrade to a fixed version: Python 3.13.11, 3.14.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-12084 or the next vulnerability affects your stack