CVE-2026-145165: domutils 1.3.0 before 4.1.0 Denial of Service via removeSubsets() Inefficient Algorithm
domutils 1.3.0 before 4.1.0 contains an inefficient algorithm in removeSubsets() that allows remote attackers to cause CPU exhaustion by supplying documents with many nested or sibling nodes. Attackers can submit crafted HTML or XML processed by css-select selectAll() or cheerio find() to block the Node.js event loop for seconds.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/domutilsto a version that resolves this vulnerability.Fixed in 4.1.0
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Node.js applications using npm/domutils in versions 1.3.0 through versions before 4.1.0 are exposed when they process attacker-controlled HTML or XML through css-select selectAll() or cheerio find().
What must an attacker provide to trigger the denial of service?
The attacker must be able to submit crafted HTML or XML containing many nested or sibling nodes that the application processes with the affected selector operations. No authentication or user interaction is required according to the supplied vector.
What is the operational impact of a successful attack?
Processing the crafted document can consume CPU and block the Node.js event loop for seconds. This can make the affected application unavailable or unresponsive while the input is handled.