CVE-2026-145165: domutils Algorithmic Complexity DoS
Published 2026-12-04 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · high severity — update domutils to 4.1.0 or later in your next patch cycle.
What to do
- Update domutils to version 4.1.0 or later. Versions from 1.3.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.3.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 on availability is rated high.
| 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 | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: Algorithmic Complexity DoS
Crafted input triggers worst-case processing time, tying up the service.
Classified as CWE-407.
Description
domutils 1.3.0 before 4.1.0 contains an inefficient algorithm in removeSubsets() that allows remote attackers to cause CPU exhaustion by supplying documents with many nested or sibling nodes. Attackers can submit crafted HTML or XML processed by css-select selectAll() or cheerio find() to block the Node.js event loop for seconds.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/fb55/domutils/commit/2c13c4f8db7838447659608e876099a8d1a28181
- Patchhttps://github.com/fb55/domutils/commit/2c9cac0f3f6905cd91277b82493f1b13d921a1eb
- Patchhttps://github.com/fb55/domutils/releases/tag/v4.1.0
- Advisoryhttps://github.com/fb55/domutils/security/advisories/GHSA-42h4-gpjh-8xhf
- Advisoryhttps://www.vulncheck.com/advisories/domutils-1.3.0-before-4.1.0-denial-of-service-via-removesubsets-inefficient-algorithm
- Advisoryhttps://github.com/fb55/domutils/security/advisories/GHSA-42h4-gpjh-8xhf
- Referencehttps://github.com/fb55/domutils/blob/v4.0.2/src/helpers.ts#L11-L40