Unrated severityNVD Advisory· Published Dec 2, 2026
YamlDotNet through 18.1.0 Uncontrolled Recursion via Self-Aliasing Mapping Key
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.
Patches
Vulnerability mechanics
References
4- www.vulncheck.com/advisories/yamldotnet-through-18.1.0-uncontrolled-recursion-via-self-aliasing-mapping-keymitrethird-party-advisory
- github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlMappingNode.csmitretechnical-description
- github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlNode.csmitretechnical-description
- github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlSequenceNode.csmitretechnical-description
News mentions
0No linked articles in our index yet.