Domutils
Monthly
Memory exhaustion in the domutils npm package (versions 2.8.0 through 4.0.2) allows remote attackers to terminate Node.js processes by submitting RSS or Atom feeds that nest many item or entry elements around media:content elements, multiplying the collected media objects and driving the process into an out-of-memory termination that try/catch cannot intercept. Any application that calls getFeed() - directly or indirectly through htmlparser2's parseFeed() - on untrusted feed content is exposed; the parse itself requires no authentication, user interaction or non-default configuration, and the advisory demonstrates the amplification with a short Node.js snippet (a public PoC reference exists; it is not verified as working exploit code). The vendor has released 4.1.0, which treats a nested item as part of its outer item, and vuln.today assigns this a 'this_week' remediation priority based on the remote, low-complexity availability-only impact; no confirmed active exploitation (CISA KEV) or EPSS signal was provided.
Improper input handling in the npm package domutils (versions 1.3.0 through 4.0.2) lets remote attackers exhaust CPU and block the Node.js event loop for seconds by supplying heavily nested or very wide HTML/XML documents whose nodes are passed to removeSubsets(). The hot path is reached when a query is given an array of root nodes - css-select's selectAll(query, nodes) and cheerio's .find() both call into it - where the algorithm grows with the square of the node count times their depth; the vendor advisory measures roughly 15 seconds for a 50 KB document of 5,000 nested elements with 5,000 matching descendants, and about 1.5 seconds for 280 KB of 40,000 siblings. Impact is bounded to a temporary, recoverable availability loss (no confidentiality or integrity effect), no active exploitation has been confirmed (not in CISA KEV) and the only reference to exploitability is a proof-of-concept snippet published in the GitHub advisory; the vendor-released patch is domutils 4.1.0.
Denial of service in the npm package domutils (versions 1.5.0 through 4.0.2) allows an attacker who supplies deeply nested HTML or XML to block the Node.js event loop when an application calls compareDocumentPosition() or uniqueSort() on those nodes. The flaw is algorithmic rather than memory-safety related: building each node's ancestor chain with unshift() makes a single comparison take time quadratic in nesting depth, and the vendor advisory demonstrates roughly one second of blocking with about 100,000 nested <b> tags in a ~300 KB document against version 4.0.2. The CVSS:4.0 vector rates it 6.9 (AV:N/AC:L/PR:N/UI:N with only low availability impact, no confidentiality or integrity impact), matching an unauthenticated remote trigger, and a public proof-of-concept snippet is included in the vendor advisory; it is not verified as working exploit code, and there is no indication of active exploitation. Exploitation is conditional on the application both parsing untrusted markup and running these comparison or sorting helpers on it.
Deeply nested HTML or XML documents can overflow the JavaScript call stack inside domutils' findOne(), existsOne() and getElementById(), making those search functions throw a RangeError that fails the request or, if uncaught, terminates the Node.js process. The flaw affects npm package domutils from 1.0.0 through 4.0.2 (getElementById since 1.0.0, findOne since 1.1.3, existsOne since 1.4.0), so only applications that run these search helpers over attacker-supplied markup are exposed. Severity is medium and availability-only: a public proof-of-concept snippet in the upstream advisory demonstrates that roughly 20,000 nested elements (about 60 KB) suffice at the default Node.js stack size, but there is no evidence of active exploitation and the issue is not in CISA KEV; vendor-released patch: 4.1.0.
Stack exhaustion in the npm package domutils (versions 1.1.0 through 4.0.2) lets unauthenticated remote attackers crash or stall a Node.js process by supplying a deeply nested HTML or XML document that is passed to getText(), textContent() or innerText(). Those three helpers recursed once per nesting level, so roughly 10,000 nested tags (about 30 KB) exhaust Node's default call stack and throw a RangeError; applications that do not catch it fail the request or terminate the process. The assessed impact is availability only (CVSS:3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), the vendor fix in 4.1.0 replaces recursion with an explicit stack, and a public PoC reference exists in the upstream advisory but is not verified as working exploit code; no confirmed active exploitation (CISA KEV) is reported.
Quadratic-time denial of service in the npm package domutils 3.1.0 through 4.0.2 lets remote attackers block the Node.js event loop by supplying a deeply nested HTML or XML document that is searched with find(), findAll(), or a helper built on them (filter(), getElements(), getElementsByTagName(), getElementsByClassName(), or getElementsByTagType()). The attacker needs only to control the markup being searched - no authentication or user interaction is required from the vulnerable function (PR:N/UI:N) - and cost scales with nesting depth; the vendor advisory shows roughly 100,000 nested elements (~300 KB) occupying findAll() for about 2 seconds on version 4.0.2. Impact is availability-only (C:N/I:N/A:L), the vendor advisory includes a public proof-of-concept snippet demonstrating the timing but no verified working exploit code, the flaw is not listed in CISA KEV, and a fix is released in 4.1.0.
Memory exhaustion in the domutils npm package (versions 2.8.0 through 4.0.2) allows remote attackers to terminate Node.js processes by submitting RSS or Atom feeds that nest many item or entry elements around media:content elements, multiplying the collected media objects and driving the process into an out-of-memory termination that try/catch cannot intercept. Any application that calls getFeed() - directly or indirectly through htmlparser2's parseFeed() - on untrusted feed content is exposed; the parse itself requires no authentication, user interaction or non-default configuration, and the advisory demonstrates the amplification with a short Node.js snippet (a public PoC reference exists; it is not verified as working exploit code). The vendor has released 4.1.0, which treats a nested item as part of its outer item, and vuln.today assigns this a 'this_week' remediation priority based on the remote, low-complexity availability-only impact; no confirmed active exploitation (CISA KEV) or EPSS signal was provided.
Improper input handling in the npm package domutils (versions 1.3.0 through 4.0.2) lets remote attackers exhaust CPU and block the Node.js event loop for seconds by supplying heavily nested or very wide HTML/XML documents whose nodes are passed to removeSubsets(). The hot path is reached when a query is given an array of root nodes - css-select's selectAll(query, nodes) and cheerio's .find() both call into it - where the algorithm grows with the square of the node count times their depth; the vendor advisory measures roughly 15 seconds for a 50 KB document of 5,000 nested elements with 5,000 matching descendants, and about 1.5 seconds for 280 KB of 40,000 siblings. Impact is bounded to a temporary, recoverable availability loss (no confidentiality or integrity effect), no active exploitation has been confirmed (not in CISA KEV) and the only reference to exploitability is a proof-of-concept snippet published in the GitHub advisory; the vendor-released patch is domutils 4.1.0.
Denial of service in the npm package domutils (versions 1.5.0 through 4.0.2) allows an attacker who supplies deeply nested HTML or XML to block the Node.js event loop when an application calls compareDocumentPosition() or uniqueSort() on those nodes. The flaw is algorithmic rather than memory-safety related: building each node's ancestor chain with unshift() makes a single comparison take time quadratic in nesting depth, and the vendor advisory demonstrates roughly one second of blocking with about 100,000 nested <b> tags in a ~300 KB document against version 4.0.2. The CVSS:4.0 vector rates it 6.9 (AV:N/AC:L/PR:N/UI:N with only low availability impact, no confidentiality or integrity impact), matching an unauthenticated remote trigger, and a public proof-of-concept snippet is included in the vendor advisory; it is not verified as working exploit code, and there is no indication of active exploitation. Exploitation is conditional on the application both parsing untrusted markup and running these comparison or sorting helpers on it.
Deeply nested HTML or XML documents can overflow the JavaScript call stack inside domutils' findOne(), existsOne() and getElementById(), making those search functions throw a RangeError that fails the request or, if uncaught, terminates the Node.js process. The flaw affects npm package domutils from 1.0.0 through 4.0.2 (getElementById since 1.0.0, findOne since 1.1.3, existsOne since 1.4.0), so only applications that run these search helpers over attacker-supplied markup are exposed. Severity is medium and availability-only: a public proof-of-concept snippet in the upstream advisory demonstrates that roughly 20,000 nested elements (about 60 KB) suffice at the default Node.js stack size, but there is no evidence of active exploitation and the issue is not in CISA KEV; vendor-released patch: 4.1.0.
Stack exhaustion in the npm package domutils (versions 1.1.0 through 4.0.2) lets unauthenticated remote attackers crash or stall a Node.js process by supplying a deeply nested HTML or XML document that is passed to getText(), textContent() or innerText(). Those three helpers recursed once per nesting level, so roughly 10,000 nested tags (about 30 KB) exhaust Node's default call stack and throw a RangeError; applications that do not catch it fail the request or terminate the process. The assessed impact is availability only (CVSS:3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), the vendor fix in 4.1.0 replaces recursion with an explicit stack, and a public PoC reference exists in the upstream advisory but is not verified as working exploit code; no confirmed active exploitation (CISA KEV) is reported.
Quadratic-time denial of service in the npm package domutils 3.1.0 through 4.0.2 lets remote attackers block the Node.js event loop by supplying a deeply nested HTML or XML document that is searched with find(), findAll(), or a helper built on them (filter(), getElements(), getElementsByTagName(), getElementsByClassName(), or getElementsByTagType()). The attacker needs only to control the markup being searched - no authentication or user interaction is required from the vulnerable function (PR:N/UI:N) - and cost scales with nesting depth; the vendor advisory shows roughly 100,000 nested elements (~300 KB) occupying findAll() for about 2 seconds on version 4.0.2. Impact is availability-only (C:N/I:N/A:L), the vendor advisory includes a public proof-of-concept snippet demonstrating the timing but no verified working exploit code, the flaw is not listed in CISA KEV, and a fix is released in 4.1.0.