CVE-2026-145166: domutils Uncontrolled Recursion
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.0.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 nesting depth in front of the affected component.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| domutils | ≥ 1.0.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: Uncontrolled Recursion
Deeply nested input exhausts the stack and crashes the process.
Classified as CWE-674.
Description
domutils 1.0.0 before 4.1.0 contains an uncontrolled recursion vulnerability in findOne(), existsOne() and getElementById() that allows attackers to exhaust the call stack with deeply nested documents. Attackers can supply HTML or XML with about 20,000 nested elements to trigger a RangeError, causing request failures or process termination.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/fb55/domutils/commit/687bf59247f6929ee3ec86fac95dd26dcb28a017
- Patchhttps://github.com/fb55/domutils/commit/ac3ba78ab40b6d7627e3d33fc684ab9719626782
- Patchhttps://github.com/fb55/domutils/releases/tag/v4.1.0
- Advisoryhttps://github.com/fb55/domutils/security/advisories/GHSA-5pwf-qwq7-cwxj
- Advisoryhttps://www.vulncheck.com/advisories/domutils-1.0.0-before-4.1.0-stack-overflow-via-uncontrolled-recursion-in-findone
- Referencehttps://github.com/fb55/domutils/blob/v4.0.2/src/querying.ts#L93-L129