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.
CVSS
MEDIUM 6.9 · v4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XWEAKNESSES
REFERENCES
- https://github.com/fb55/domutils/blob/v4.0.2/src/helpers.ts#L79-L99
- https://github.com/fb55/domutils/commit/560a8d1886b8ac28872432b3bb368c19930a6c8f
- https://github.com/fb55/domutils/releases/tag/v4.1.0
- https://github.com/fb55/domutils/security/advisories/GHSA-pvqx-4ghw-x6gp
- https://www.vulncheck.com/advisories/domutils-1.5.0-before-4.1.0-denial-of-service-via-comparedocumentposition
This record is mirrored from the NIST National Vulnerability Database and republished unchanged. It may have been revised or withdrawn since we last synced it; check the record at NVD before relying on it.