Skip to main content

domutils CVE-2026-145168

| EUVDEUVD-2026-144358 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
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
    Identify endpoint that searches untrusted HTML/XML
  2. Delivery
    Submit deeply nested document (~300 KB)
  3. Exploit
    Trigger quadratic unshift/shift stack handling in findAll()
  4. Execution
    Block single-threaded Node.js event loop
  5. Impact
    Service-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.

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

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

domutils 3.1.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 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

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 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.

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

Prevalence
High
core DOM utility library across the Node.js ecosystem (cheerio/htmlparser2)
Data Quality
4 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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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