CVE-2026-142212

7.5High

Published Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-674

What an attacker gets

Unauthenticated attackers can crash your application by sending a crafted YAML document. This triggers an uncatchable StackOverflowException that terminates the process.

Root cause

The GetHashCode method in YamlSequenceNode and YamlMappingNode uses uncontrolled recursion when processing self-aliasing anchored sequences.

Affected versions

YamlDotNet through 18.1.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Fix & remediation

Upgrade to a version beyond 18.1.0 once available. In the interim, implement strict input validation to reject YAML documents containing self-referencing anchors or aliases before passing them to YamlStream.Load.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-142212

More fully triaged vulnerabilities you may want to check next.