Read the docs

Uncontrolled recursion in domutils findOne() exhausts the call stack

Priority MEDIUM 46CWE-674Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-674.

Summary

domutils from 1.0.0 before 4.1.0 uses uncontrolled recursion in its element lookup functions (CWE-674). An unauthenticated remote attacker can supply HTML or XML with about 20,000 nested elements to exhaust the call stack. This raises a RangeError that causes request failures or terminates the process.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

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.

Why it matters now

Fix Fixed domutils (fb55): 4.1.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
fb55domutils1.0.0 to before 4.1.04.1.0Patch availableCNA
  • domutils Vendorfb55 Affected 1.0.0 to before 4.1.0 Fixed in 4.1.0 Patch available CNA

Remediation

Update domutils to 4.1.0, the fixed version.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA domutils (fb55) Fixed in 4.1.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    fb55 domutils 4.1.0

    6 records Highest priority Priority HIGH 2 HIGH, 4 MEDIUM

    Other records, highest priority first

    • TI-2026-104279 Inefficient algorithm in domutils removeSubsets() enables denial of servicePriority HIGH 77
    • TI-2026-104281 Uncontrolled recursion in domutils getText() exhausts the call stackPriority HIGH 70
    • TI-2026-104278 Memory exhaustion in domutils getFeed() crashes Node.js processesPriority MEDIUM 53

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-145166

References

  • TI-2026-104279 Inefficient algorithm in domutils removeSubsets() enables denial of service CVSS 4.0HIGH 8.7
  • TI-2026-104281 Uncontrolled recursion in domutils getText() exhausts the call stack CVSS 4.0MEDIUM 6.9
  • TI-2026-104278 Memory exhaustion in domutils getFeed() crashes Node.js processes CVSS 4.0HIGH 8.7
  • TI-2026-104282 Quadratic-time denial of service in domutils find() and findAll() CVSS 4.0MEDIUM 6.9
  • TI-2026-104273 Denial of service in domutils compareDocumentPosition() CVSS 4.0MEDIUM 6.9

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences