CVE-2026-145167: domutils 1.1.0 before 4.1.0 Stack Overflow via getText() Uncontrolled Recursion
domutils 1.1.0 before 4.1.0 contains an uncontrolled recursion vulnerability in getText(), textContent() and innerText() in src/stringify.ts that allows attackers to exhaust the call stack. Attackers can supply HTML or XML documents with about 10,000 nested levels to trigger a RangeError, failing requests or terminating the Node.js process.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this denial-of-service issue?
Applications using affected domutils versions are exposed when they process attacker-controlled HTML or XML and call getText(), textContent(), or innerText() on the resulting document or nodes. Network reachability depends on whether an attacker can submit such content to a request-processing path.
What does an attacker need to trigger the failure?
An attacker needs to supply an HTML or XML document with roughly 10,000 nested levels that reaches one of the affected stringification functions. No privileges or user interaction are required according to the supplied severity vector.
What happens when exploitation succeeds?
The uncontrolled recursion exhausts the call stack and raises a RangeError. This can fail the active request or terminate the Node.js process, causing a denial of service.
What should be done if an immediate upgrade is not possible?
The provided data does not specify an official workaround. As an operational mitigation, avoid passing untrusted documents to the affected functions unless the application can enforce a nesting-depth limit before processing.