{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.0.0"
                  },
                  {
                    "fixed": "4.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "687bf59247f6929ee3ec86fac95dd26dcb28a017"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "ac3ba78ab40b6d7627e3d33fc684ab9719626782"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v4.1.0",
                "range": [
                  {
                    "fixed": "423aacc5a05c1c615f6cef088d6cd59e1b681e29"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "423aacc5a05c1c615f6cef088d6cd59e1b681e29"
            },
            {
              "fixed": "687bf59247f6929ee3ec86fac95dd26dcb28a017"
            },
            {
              "fixed": "ac3ba78ab40b6d7627e3d33fc684ab9719626782"
            }
          ],
          "repo": "https://github.com/fb55/domutils",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5pwf-qwq7-cwxj"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-674"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145166.json"
  },
  "details": "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.",
  "id": "CVE-2026-145166",
  "modified": "2026-12-04T17:45:45.928458914Z",
  "published": "2026-12-04T16:30:58.546Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145166.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/fb55/domutils"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/fb55/domutils/blob/v4.0.2/src/querying.ts#L93-L129"
    },
    {
      "type": "FIX",
      "url": "https://github.com/fb55/domutils/commit/687bf59247f6929ee3ec86fac95dd26dcb28a017"
    },
    {
      "type": "FIX",
      "url": "https://github.com/fb55/domutils/commit/ac3ba78ab40b6d7627e3d33fc684ab9719626782"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/fb55/domutils/releases/tag/v4.1.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/fb55/domutils/security/advisories/GHSA-5pwf-qwq7-cwxj"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-145166"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/domutils-1.0.0-before-4.1.0-stack-overflow-via-uncontrolled-recursion-in-findone"
    }
  ],
  "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.0.0 before 4.1.0 Stack Overflow via Uncontrolled Recursion in findOne()"
}