cvelo
P3 · MediumCVSS 5.3

domutils 1.5.0 before 4.1.0 Denial of Service via compareDocumentPosition()

  • CVE-2026-145158
  • EUVD-2026-144269

Summary

CVE-2026-145158 affects domutils versions 1.5.0 through before 4.1.0. The compareDocumentPosition() function builds ancestor chains using unshift(), which takes quadratic time on deeply nested documents. An attacker who can supply HTML or XML with deeply nested elements can cause applications that compare or sort nodes with uniqueSort() to block the Node.js event loop, producing a denial of service. The record gives a CVSS score of 5.3 and does not list it in the CISA known exploited vulnerabilities catalog. Engineers running affected domutils versions that parse untrusted markup should prioritize upgrading to 4.1.0 or later.

AI summary · verify against the vendor advisory

Description

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.

Text from the CVE.org record.

Recommendation

  • fb55 domutils

    • If you run a version from 1.5.0 to before 4.1.0update to 4.1.0 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • fb55 domutils

    Affected versionsFixed in
    from 1.5.0 to before 4.1.04.1.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.