CVE-2026-145158
Received Received - Intake

Denial of Service in domutils via compareDocumentPosition()

Vulnerability report for CVE-2026-145158, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: VulnCheck

Description

domutils 1.5.0 before 4.1.0 contains a denial of service vulnerability in compareDocumentPosition() that takes quadratic time when building ancestor chains with unshift(). Attackers can supply HTML or XML documents with deeply nested elements that applications compare or sort via uniqueSort() to block the Node.js event loop.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
fb55 domutils From 1.5.0 (inc) to 4.1.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a denial of service issue in domutils versions before 4.1.0. It occurs in the compareDocumentPosition() function, which takes quadratic time to process deeply nested HTML or XML documents. Attackers can exploit this by supplying documents with many nested elements that applications sort or compare, potentially blocking the Node.js event loop.

Detection Guidance

Check if your system uses domutils version 1.5.0 or earlier. Run 'npm list domutils' or 'npm ls domutils' to verify the installed version. If vulnerable, update to version 4.1.0 or later.

Impact Analysis

If you use domutils in a Node.js application, an attacker could send maliciously crafted HTML or XML documents to consume excessive CPU resources. This may cause your application to slow down or become unresponsive, disrupting normal operations and user experience.

Mitigation Strategies

Upgrade domutils to version 4.1.0 or later immediately. If upgrading is not possible, consider removing or replacing the library in your application to prevent exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-145158. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...