CVE-2026-145168: domutils 3.1.0 before 4.1.0 Denial of Service via find() and findAll()
domutils 3.1.0 before 4.1.0 contains a quadratic-time denial of service vulnerability in find() and findAll() caused by stack handling with unshift() and shift(). Attackers can supply deeply nested HTML or XML documents searched via filter(), getElements(), or getElementsByTagName() to block the Node.js event loop.
Affected Software
Event History
Frequently Asked Questions
Which applications are realistically exposed to this denial of service?
Node.js applications using domutils versions 3.1.0 through versions before 4.1.0 are exposed when they process attacker-controlled HTML or XML and search it with filter(), getElements(), or getElementsByTagName(). The impact is blocking of the Node.js event loop.
What does an attacker need to exploit the issue?
An attacker needs to be able to provide a deeply nested HTML or XML document that the application subsequently searches through one of the affected domutils APIs. No authentication or user interaction is required according to the supplied severity vector.
Is a default installation affected?
The provided data identifies affected domutils versions but does not establish whether an application's default configuration invokes the affected search functions on untrusted documents. Exposure depends on whether attacker-controlled HTML or XML reaches filter(), getElements(), or getElementsByTagName().
How can I determine whether my application is affected?
Check whether your dependency tree includes npm/domutils version 3.1.0 or later but earlier than 4.1.0. Then identify code paths that parse untrusted HTML or XML and call filter(), getElements(), or getElementsByTagName() on the resulting documents.
What should be done to remediate the issue?
Update domutils to version 4.1.0 or later. The supplied release and commit references identify version 4.1.0 as the release containing the fix.