{"id":"CVE-2026-145158","state":"PUBLISHED","title":"domutils 1.5.0 before 4.1.0 Denial of Service via compareDocumentPosition()","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.","publishedAt":"2026-12-04T16:31:07.299Z","updatedAt":"2026-12-04T16:31:07.299Z","severity":{"score":6.9,"label":"Medium","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["fb55 domutils"],"affected":[{"vendor":"fb55","product":"domutils","packageURL":"pkg:npm/domutils","defaultStatus":"unaffected","versions":[{"version":"1.5.0","status":"affected","lessThan":"4.1.0","versionType":"semver"}],"repo":"https://github.com/fb55/domutils"}],"references":["https://github.com/fb55/domutils/security/advisories/GHSA-pvqx-4ghw-x6gp","https://github.com/fb55/domutils/commit/560a8d1886b8ac28872432b3bb368c19930a6c8f","https://github.com/fb55/domutils/releases/tag/v4.1.0","https://github.com/fb55/domutils/blob/v4.0.2/src/helpers.ts#L79-L99","https://www.vulncheck.com/advisories/domutils-1.5.0-before-4.1.0-denial-of-service-via-comparedocumentposition"],"weaknesses":["CWE-407"],"ingestedAt":"2026-12-04T16:36:06.314Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/145xxx/CVE-2026-145158.json","commit":"b010e4ebd823eec7fcd691db6743218b0abb4d30","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-145158","state":"PUBLISHED","datePublished":"2026-12-04T16:31:07.299Z","dateUpdated":"2026-12-04T16:31:07.299Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-12-04T16:15:51.479Z"},"containers":{"cna":{"title":"domutils 1.5.0 before 4.1.0 Denial of Service via compareDocumentPosition()","descriptions":[{"lang":"en","value":"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":[{"vendor":"fb55","product":"domutils","packageURL":"pkg:npm/domutils","defaultStatus":"unaffected","versions":[{"version":"1.5.0","status":"affected","lessThan":"4.1.0","versionType":"semver"}],"repo":"https://github.com/fb55/domutils"}],"references":[{"url":"https://github.com/fb55/domutils/security/advisories/GHSA-pvqx-4ghw-x6gp","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-pvqx-4ghw-x6gp)"},{"url":"https://github.com/fb55/domutils/commit/560a8d1886b8ac28872432b3bb368c19930a6c8f","tags":["patch"]},{"url":"https://github.com/fb55/domutils/releases/tag/v4.1.0","tags":["release-notes"],"name":"domutils v4.1.0 Release Notes"},{"url":"https://github.com/fb55/domutils/blob/v4.0.2/src/helpers.ts#L79-L99","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/domutils-1.5.0-before-4.1.0-denial-of-service-via-comparedocumentposition","name":"VulnCheck Advisory: domutils 1.5.0 before 4.1.0 Denial of Service via compareDocumentPosition()","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-407","lang":"en","description":"Inefficient Algorithmic Complexity","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-12-04T16:31:07.299Z"},"datePublic":"2026-12-03T00:00:00.000Z","credits":[{"lang":"en","value":"Zachariah Mithani (AploSec)","type":"finder"},{"lang":"en","value":"ucsurf","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}