CVE-2026-145158: domutils Algorithmic Complexity DoS
Published 2026-12-04 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · medium severity — update domutils to 4.1.0 or later on your normal schedule.
What to do
- Update domutils to version 4.1.0 or later. Versions from 1.5.0 up to, but not including, 4.1.0 are affected.
- Until it is patched, do not leave domutils reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Limit input size and apply request timeouts in front of the affected service.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| domutils | ≥ 1.5.0, < 4.1.0 | 4.1.0 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: availability is rated low.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | Low | Partial loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness: Algorithmic Complexity DoS
Crafted input triggers worst-case processing time, tying up the service.
Classified as CWE-407.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/fb55/domutils/commit/560a8d1886b8ac28872432b3bb368c19930a6c8f
- Patchhttps://github.com/fb55/domutils/releases/tag/v4.1.0
- Advisoryhttps://github.com/fb55/domutils/security/advisories/GHSA-pvqx-4ghw-x6gp
- Advisoryhttps://www.vulncheck.com/advisories/domutils-1.5.0-before-4.1.0-denial-of-service-via-comparedocumentposition
- Referencehttps://github.com/fb55/domutils/blob/v4.0.2/src/helpers.ts#L79-L99