{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.5.0"
                  },
                  {
                    "fixed": "4.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "560a8d1886b8ac28872432b3bb368c19930a6c8f"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v4.1.0",
                "range": [
                  {
                    "fixed": "423aacc5a05c1c615f6cef088d6cd59e1b681e29"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "347ed4e848dd7129ec9efd18553588636f6d5bf5"
            },
            {
              "fixed": "423aacc5a05c1c615f6cef088d6cd59e1b681e29"
            },
            {
              "fixed": "560a8d1886b8ac28872432b3bb368c19930a6c8f"
            }
          ],
          "repo": "https://github.com/fb55/domutils",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-pvqx-4ghw-x6gp"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-407"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145158.json"
  },
  "details": "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.",
  "id": "CVE-2026-145158",
  "modified": "2026-12-04T17:46:07.404436258Z",
  "published": "2026-12-04T16:31:07.299Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145158.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/fb55/domutils"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/fb55/domutils/blob/v4.0.2/src/helpers.ts#L79-L99"
    },
    {
      "type": "FIX",
      "url": "https://github.com/fb55/domutils/commit/560a8d1886b8ac28872432b3bb368c19930a6c8f"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/fb55/domutils/releases/tag/v4.1.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/fb55/domutils/security/advisories/GHSA-pvqx-4ghw-x6gp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-145158"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/domutils-1.5.0-before-4.1.0-denial-of-service-via-comparedocumentposition"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "domutils 1.5.0 before 4.1.0 Denial of Service via compareDocumentPosition()"
}