Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint that searches untrusted HTML/XML
-
DeliverySubmit deeply nested document (~300 KB)
-
ExploitTrigger quadratic unshift/shift stack handling in findAll()
-
ExecutionBlock single-threaded Node.js event loop
-
ImpactService-wide denial of availability
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | Requires that the application calls domutils' find() or findAll() - or a helper built on them (filter(), getElements(), getElementsByTagName(), getElementsByClassName(), getElementsByTagType()) - over attacker-controlled HTML or XML, on a vulnerable version (>= 3.1.0 and <= 4.0.2; getElementsByClassName affected only from 3.2.0). The attacker must be able to supply a deeply nested document; cost scales with nesting depth (the advisory shows ~100,000 nested elements / ~300 KB blocking the event loop ~2 s on 4.0.2). Limiting factors: exploitation is confined to code paths that search untrusted input with these specific functions, so applications that only process trusted markup or cap document nesting depth before searching are not affected; the vendor also notes running the search in a worker terminated after a time limit as a workaround. No authentication or user interaction is required for the vulnerable function itself (PR:N/UI:N), and the only impact is temporary availability loss while the event loop is blocked. |
| Impact | This is a medium-severity, availability-only denial of service (CWE-407, inefficient algorithmic complexity). The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 6.9 and shows the only impact is availability at Low (VA:L) - no confidentiality or integrity effect and no scope change to other systems. The input provides no EPSS score and no CISA KEV listing, so there is no public signal of active or widespread exploitation; status is best described as no confirmed in-the-wild activity, consistent with the vuln.today priority label 'this_month' (fix on a normal maintenance cadence, not an emergency). A proof-of-concept is published in the vendor's GHSA advisory, demonstrating that ~100,000 nested tags (~300 KB) blocks the Node.js event loop for about 2 seconds on 4.0.2, which lowers the bar to reproduce and makes abuse amplifiable with larger inputs. The realistic risk is therefore concentrated in applications that specifically run domutils' find()/findAll() family over attacker-controlled HTML/XML; for those, a single request can stall the single-threaded event loop and degrade the whole service. It is a genuine but bounded issue - not a high-CVSS-but-irrelevant finding, yet not a critical priority - and the dominant driver is exposure of the vulnerable code path to untrusted input rather than any high-impact or privileged compromise. Note EPSS is absent, so exploitation probability cannot be quantified from the provided data. |
| Exploit ScenarioDerived | An application uses domutils (directly or via cheerio/htmlparser2) to parse and search untrusted HTML or XML with findAll(), find(), filter(), getElements(), or getElementsByTagName(). An unauthenticated attacker submits a deeply nested document (e.g. 100,000 nested <b> tags, ~300 KB), and the quadratic stack handling blocks the Node.js event loop for seconds, stalling all concurrent requests. A working proof-of-concept is published in the vendor's GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
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.
RemediationAI
Upgrade domutils to 4.1.0, the version that fixes the issue by moving the search stacks to end operations (push()/pop() with a top index); the fix commit is https://github.com/fb55/domutils/commit/9bf76267f13407d77bbad7da06907876af3aed30 and the release is https://github.com/fb55/domutils/releases/tag/v4.1.0. Because domutils is typically a transitive dependency, the practical step is to update the direct dependency that pulls it in and confirm the resolved domutils version is 4.1.0 or later - where a parent package pins an older range, an override/resolution entry may be required, which can put the parent package outside its tested dependency set. For deployments that cannot upgrade immediately, the vendor documents two workarounds: reject documents nested deeper than the application needs before searching them, which caps legitimate deeply nested input and requires a depth check at the parsing boundary, or run the search in a worker that is terminated after a time limit, which requires worker infrastructure and means the blocked work is isolated rather than prevented. Advisory: https://github.com/fb55/domutils/security/advisories/GHSA-qx47-vpjg-465w; additional detail at https://www.vulncheck.com/advisories/domutils-3.1.0-before-4.1.0-denial-of-service-via-find-and-findall.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
domutils is a DOM traversal and querying utility library used throughout the Node.js HTML/XML ecosystem (it is a dependency of htmlparser2-based tooling). The affected query functions maintained their work lists - the child lists still pending search - on stacks that were grown and shrunk at the front with unshift() and shift(); each such operation reindexes every element already on the stack, so the total work for a document of depth d is quadratic in d rather than linear. This is CWE-407, inefficient algorithmic complexity, and because the traversal runs synchronously on the main thread, the time is spent blocking the Node.js event loop rather than merely delaying one request. The tracked package identifier is cpe:2.3:a:fb55:domutils. The upstream commit 9bf76267f13407d77bbad7da06907876af3aed30 converts the stacks to push()/pop() at the end, tracking the active frame with a top index instead of always reading index 0, and also rewrites getSiblings() in traversal.ts to build the sibling list with push() followed by a single reverse(); the commit adds regression tests that read the node list by index in the non-recursing path. The vulnerability was introduced in 3.1.0, when these stacks were added; getElementsByClassName() - added in 3.2.0 - is affected from that release onward rather than from 3.1.0.
Know when Domutils gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Untrusted document reaches the parser over the network with no auth or interaction (AV:N/AC:L/PR:N/UI:N); only temporary, recoverable event-loop blocking, so A:L and C:N/I:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Memory exhaustion in the domutils npm package (versions 2.8.0 through 4.0.2) allows remote attackers to terminate Node.j
Improper input handling in the npm package domutils (versions 1.3.0 through 4.0.2) lets remote attackers exhaust CPU and
Denial of service in the npm package domutils (versions 1.5.0 through 4.0.2) allows an attacker who supplies deeply nest
Deeply nested HTML or XML documents can overflow the JavaScript call stack inside domutils' findOne(), existsOne() and g
Stack exhaustion in the npm package domutils (versions 1.1.0 through 4.0.2) lets unauthenticated remote attackers crash
EUVD-2026-144358
NVD
CVE.org
GitHub
Exploit-DB