{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "18.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "748334a8fa7c227740018b284b71ad95cc6b7fc7"
            }
          ],
          "repo": "https://github.com/yamldotnet/yamldotnet",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-674"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142212.json"
  },
  "details": "YamlDotNet through 18.1.0 contains an uncontrolled recursion vulnerability in YamlSequenceNode and YamlMappingNode GetHashCode that allows unauthenticated remote attackers to crash applications using YamlStream.Load. Attackers can supply a tiny YAML document with a self-aliasing anchored sequence used as a mapping key, triggering an uncatchable StackOverflowException that terminates the hosting process.",
  "id": "CVE-2026-142212",
  "modified": "2026-12-02T17:45:23.152760043Z",
  "published": "2026-12-02T16:50:34.405Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142212.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/YamlDotNet/YamlDotNet"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlMappingNode.cs#L76-L82"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlNode.cs#L65-L101"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlSequenceNode.cs#L203-L212"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142212"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/yamldotnet-through-18.1.0-uncontrolled-recursion-via-self-aliasing-mapping-key"
    }
  ],
  "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:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "YamlDotNet through 18.1.0 Uncontrolled Recursion via Self-Aliasing Mapping Key"
}