Python XML DOM minidom quadratic appendChild CVE-2025-12084
CVE-2025-12084 Published on December 3, 2025

Quadratic complexity in node ID cache clearing
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.

NVD

Weakness Type

Inefficient Algorithmic Complexity

An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.


Products Associated with CVE-2025-12084

stack.watch emails you whenever new vulnerabilities are published in Python or Canonical Ubuntu Linux. Just hit a watch button to start following.

 
 

Affected Versions

Python Software Foundation CPython:

Exploit Probability

EPSS
0.05%
Percentile
15.10%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.