Skip to main content

domutils CVE-2026-145166

| EUVDEUVD-2026-144360 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-12-04 VulnCheck
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit deeply nested HTML/XML to parser
  2. Exploit
    Recursive findOne/existsOne/getElementById descends per level
  3. Execution
    Exhaust JavaScript call stack
  4. Impact
    RangeError 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

domutils 1.0.0 <4.1.0

Affected Packages

euvd domutils fix: 4.1.0

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Prevalence
High
core dependency of cheerio/htmlparser2 across the npm ecosystem
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
High

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy