CVE-2026-145158: domutils 1.5.0 before 4.1.0 Denial of Service via compareDocumentPosition()

Published Dec 4, 2026
·
Updated

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 Software

1 affected component
npm/domutils>=1.5.0<4.1.0

Event History

Dec 4, 2026
CVE Published
via MITRE·04:31 PM
Data Sourced
via MITRE·04:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:19 PM
DescriptionSeverityWeakness
Event
via NVD·05:19 PM

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications using npm/domutils versions from 1.5.0 through versions before 4.1.0 are exposed when they process attacker-controlled HTML or XML and compare or sort nodes through uniqueSort(). The impact is blocking of the Node.js event loop.

2

What does an attacker need to exploit it?

An attacker needs to supply an HTML or XML document containing deeply nested elements and cause the application to compare or sort those elements via uniqueSort(). No authentication or user interaction is required according to the supplied severity vector.

3

What should teams do if they cannot upgrade immediately?

Avoid passing untrusted deeply nested HTML or XML documents into workflows that compare or sort nodes via uniqueSort(). Where possible, enforce limits on document nesting before processing.

4

How can I determine whether my deployment is affected?

Check the installed npm/domutils version and identify whether the application processes untrusted HTML or XML with uniqueSort() or related node comparisons. Versions before 4.1.0 within the affected range are vulnerable.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203