CVE-2026-142212
YamlDotNet through 18.1.0 contains an uncontrolled recursion …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlMappingNo
- github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlNode.cs#L
- github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlSequenceN
- www.vulncheck.com/advisories/yamldotnet-through-18.1.0-uncontrolled-recursion-via-self-ali
- nvd.nist.gov/vuln/detail/CVE-2026-142212
- cve.org/CVERecord?id=CVE-2026-142212
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.