CVE-2026-145166
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| fb55 | domutils | {"startIncluding":"1.0.0","endExcluding":"4.1.0"} | 4.1.0 |
References
- https://github.com/fb55/domutils/blob/v4.0.2/src/querying.ts#L93-L129
- https://github.com/fb55/domutils/commit/687bf59247f6929ee3ec86fac95dd26dcb28a017
- https://github.com/fb55/domutils/commit/ac3ba78ab40b6d7627e3d33fc684ab9719626782
- https://github.com/fb55/domutils/releases/tag/v4.1.0
- https://github.com/fb55/domutils/security/advisories/GHSA-5pwf-qwq7-cwxj
- https://www.vulncheck.com/advisories/domutils-1.0.0-before-4.1.0-stack-overflow-via-uncontrolled-recursion-in-findone
CWEs
CWE-674
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.