Read the docs

Denial of service in domutils compareDocumentPosition()

Priority MEDIUM 46CWE-407Published · 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-407.

Summary

domutils from 1.5.0 before 4.1.0 contains a denial of service flaw in compareDocumentPosition() that takes quadratic time when building ancestor chains with unshift() (CWE-407). A remote attacker can supply HTML or XML documents with deeply nested elements that applications compare or sort via uniqueSort(), blocking the Node.js event loop.

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

Description from the CNA

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.

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.5.0 to before 4.1.04.1.0Patch availableCNA
  • domutils Vendorfb55 Affected 1.5.0 to before 4.1.0 Fixed in 4.1.0 Patch available CNA

Remediation

Upgrade domutils to version 4.1.0.

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-145158

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-104280 Uncontrolled recursion in domutils findOne() exhausts the call stack CVSS 4.0MEDIUM 6.9

Sources

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