{"id":"CVE-2026-142212","summary":"YamlDotNet through 18.1.0 Uncontrolled Recursion via Self-Aliasing Mapping Key","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.","modified":"2026-12-02T18:00:44.393858494Z","published":"2026-12-02T16:50:34.405Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142212.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-674"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yamldotnet/yamldotnet","events":[{"introduced":"0"},{"last_affected":"748334a8fa7c227740018b284b71ad95cc6b7fc7"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"18.1.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["v18.1.0","v18.0.0","v17.1.0","v17.0.0","v16.3.0","v16.2.1","v16.2.0","v16.1.3","v16.1.2","v16.1.1","v16.1.0","v16.0.0","v15.3.0","v15.1.2","v15.1.6","v15.1.4","v15.1.1","v15.1.0","v13.7.1","v13.7.0","v13.5.2","v13.5.1","v13.5.0","v13.4.0","v13.3.1","v13.2.0","v13.1.1","v13.1.0","v13.0.2","v13.0.1","v13.0.0","v12.3.1","v12.3.0","v12.2.1","v12.2.0","v12.1.0","v12.0.2","v12.0.1","v12.0.0","v11.2.1","v11.2.0","v11.1.1","v11.1.0","v10.1.0","v11.0.1","v10.0.0","v9.1.4","v9.1.3","v9.1.2","v9.1.1","v9.1.0","v8.1.2","v8.1.1","v8.1.0","v6.1.2","v8.0.0","v7.0.0","v6.1.1","v6.0.0","v5.4.0","v5.3.1","v5.3.0","v5.2.1","v5.2.0","v5.1.0","v5.0.1","v5.0.0","v4.3.2","v4.3.1","v4.3.0","v4.2.4","v4.2.3","v4.2.2","v4.2.1","v4.2.0","v4.1.0","v4.0.0","v3.9.0","v3.8.0","v3.7.0","v3.6.1","v3.6.0","v3.3.1","v3.3.0","v3.2.2","v3.2.1","v3.2.0","v3.1.1","v3.1.0","v3.0.0","v2.3.0-rc","v2.2.0","v2.1.0","v2.0.1","v2.0.0","v1.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142212.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}