An uncontrolled recursion issue exists in the `findOne()`, `existsOne()`, and `getElementById()` functions. An attacker can cause a RangeError, leading to request failures or process termination, by providing HTML or XML documents containing approximately 20,000 nested elements to exhaust the call stack.