CVE-2026-145166: domutils 1.0.0 before 4.1.0 Stack Overflow via Uncontrolled Recursion in findOne()
domutils 1.0.0 before 4.1.0 contains an uncontrolled recursion vulnerability in findOne(), existsOne() and getElementById() that allows attackers to exhaust the call stack with deeply nested documents. Attackers can supply HTML or XML with about 20,000 nested elements to trigger a RangeError, causing request failures or process termination.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using npm/domutils versions from 1.0.0 up to, but not including, 4.1.0 are exposed when they process attacker-supplied HTML or XML and invoke findOne(), existsOne(), or getElementById().
What does an attacker need to do to trigger the failure?
An attacker needs to provide a deeply nested HTML or XML document. Approximately 20,000 nested elements can exhaust the call stack and produce a RangeError.
What is the operational impact of successful exploitation?
Exploitation can cause request failures or terminate the affected process. The provided severity vector indicates availability impact only, with no stated confidentiality or integrity impact.
What can be done if upgrading is not immediately possible?
Limit or reject overly deep HTML or XML documents before they reach the affected domutils lookup functions. This reduces the ability to supply the nesting depth needed to exhaust the call stack.