Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit deeply nested HTML/XML to parser
-
ExploitRecursive findOne/existsOne/getElementById descends per level
-
ExecutionExhaust JavaScript call stack
-
ImpactRangeError fails request or kills process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | The application must pass attacker-controlled, untrusted HTML or XML into domutils findOne(), existsOne() or getElementById() at a vulnerable version (>= 1.0.0, <= 4.0.2); the attacker then supplies a document with about 20,000 nested elements (~60 KB) to exhaust the Node.js call stack at its default size. Limiting factors: the resulting RangeError is catchable, so full process termination occurs only when the application does not catch the error - otherwise the impact is a single failed request; applications that reject over-nested documents before searching, or that do not search untrusted documents, are not exposed. |
| Impact | This is a medium-severity denial-of-service issue, not a code-execution or data-exposure flaw. The CVSS 4.0 vector (6.9) is availability-only (VC:N/VI:N/VA:L) and the CWE-674 uncontrolled recursion can at most crash a request or terminate a process. Positive exploitation signals: network attack vector (AV:N), low complexity (AC:L), no privileges or user interaction (PR:N/UI:N), a working proof-of-concept in the vendor GHSA advisory, and reporting by VulnCheck. Tempering signals: the only impact is availability, and the vendor rated it VA:L (low) rather than high because the thrown RangeError is catchable and often degrades to a single failed request rather than a full outage. No CISA KEV listing and no EPSS score were provided in the input, so there is no evidence of active or widespread exploitation - this is no public exploit identified as actively exploited, only a demonstrated PoC. The vuln.today Decision label is this_month, consistent with a real but non-emergency DoS: patch in a routine cycle rather than treat as an incident. Note the input Tag 'Information Disclosure' conflicts with the CVSS vector, which shows zero confidentiality impact; the vector and description agree this is purely an availability problem. |
| Exploit ScenarioDerived | An attacker submits a malicious HTML or XML document (roughly 20,000 nested elements, about 60 KB) to a Node.js application that parses it and searches it with domutils' findOne(), existsOne() or getElementById(). The deeply nested structure drives one recursive call per nesting level until the JavaScript call stack is exhausted, throwing a RangeError. A public proof-of-concept exists in the GHSA advisory; if the application does not catch the error, the request fails or the process terminates. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
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.
RemediationAI
Upgrade domutils to 4.1.0, the first release that bounds the recursion and continues deep searches with an explicit stack; the fix is delivered by commits 687bf59247f6929ee3ec86fac95dd26dcb28a017 and ac3ba78ab40b6d7627e3d33fc684ab9719626782 and the v4.1.0 release tag, and the advisory GHSA-5pwf-qwq7-cwxj documents the affected ranges. If an immediate upgrade is not possible, the vendor-listed workarounds are to wrap calls to findOne(), existsOne() and getElementById() in error handling that catches the thrown RangeError and treats the document as invalid - this keeps the process alive but the individual request still fails - or to reject documents nested more deeply than the application actually needs before they reach these search functions, at the cost of an extra validation pass and the risk of refusing legitimately deep markup. Applications that never pass untrusted documents to these helpers are not exposed and can schedule the upgrade rather than treat it as urgent. Note that a public proof-of-concept snippet showing the 20,000-nested-element crash is included in the upstream advisory, though no active exploitation has been reported and the issue is not in CISA KEV.
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 the tree-querying layer of the htmlparser2/cheerio ecosystem, exposing helpers that walk a parsed DOM. In versions up to 4.0.2 the implementations of findOne(), existsOne() and getElementById() (see src/querying.ts lines 93-129 in v4.0.2) descended into child node lists recursively, consuming one JavaScript stack frame per document level; the vulnerability class is CWE-674, uncontrolled recursion. Because the parser imposes no nesting limit, a payload such as "<b>".repeat(20_000) produces a tree deep enough to raise "RangeError: Maximum call stack size exceeded" when the search helper traverses it. The 4.1.0 fix bounds the recursion and switches to an explicit stack for deeper traversal, with the accompanying test suite exercising documents nested 20,000 levels deep, mixed iterators above and below the depth switch, and correct iterator cleanup when a callback throws. The CVSS 4.0 vector supplied with the CVE scores only availability impact (VA:L) with no confidentiality or integrity effect, and the independent assessment concurs with a CVSS 3.1 vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
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 remotely with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only and A:L, since the catchable RangeError usually fails one request rather than the whole service.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
domutils 1.0.0 before 4.1.0 contains an uncontrolled recursion vulnerability in findOne(), existsOne() and getElementById() that allows attackers to exhaust the call stack with deeply nested documents. Attackers can supply HTML or XML with about 20,000 nested elements to trigger a RangeError, causing request failures or process termination.
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
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
Stack exhaustion in the npm package domutils (versions 1.1.0 through 4.0.2) lets unauthenticated remote attackers crash
Quadratic-time denial of service in the npm package domutils 3.1.0 through 4.0.2 lets remote attackers block the Node.js
EUVD-2026-144360
NVD
CVE.org
GitHub
VulDB
Exploit-DB