Medium severity5.3NVD Advisory· Published Dec 4, 2026
CVE-2026-145158
CVE-2026-145158
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.
Affected products
1Patches
Vulnerability mechanics
References
5- github.com/fb55/domutils/blob/v4.0.2/src/helpers.tsnvd
- github.com/fb55/domutils/commit/560a8d1886b8ac28872432b3bb368c19930a6c8fnvd
- github.com/fb55/domutils/releases/tag/v4.1.0nvd
- github.com/fb55/domutils/security/advisories/GHSA-pvqx-4ghw-x6gpnvd
- www.vulncheck.com/advisories/domutils-1.5.0-before-4.1.0-denial-of-service-via-comparedocumentpositionnvd
News mentions
0No linked articles in our index yet.