CVE-2026-142212
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlMappingNode.cs#L76-L82
- https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlNode.cs#L65-L101
- https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlSequenceNode.cs#L203-L212
- https://www.vulncheck.com/advisories/yamldotnet-through-18.1.0-uncontrolled-recursion-via-self-aliasing-mapping-key
CWEs
CWE-674
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.