CVE-2026-142212: YamlDotNet through 18.1.0 Uncontrolled Recursion via Self-Aliasing Mapping Key

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
nuget/YamlDotNet<=18.1.0

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

Which applications are exposed to this denial-of-service issue?

Applications using YamlDotNet through version 18.1.0 are exposed when they call YamlStream.Load on YAML that an attacker can supply. The affected code paths are YamlSequenceNode and YamlMappingNode GetHashCode handling a self-aliasing anchored sequence used as a mapping key.

2

What does an attacker need to exploit it?

The attacker needs only network access to a path that accepts attacker-controlled YAML and passes it to YamlStream.Load. No authentication or user interaction is required, and the malicious document can be very small.

3

What is the operational impact of successful exploitation?

Processing the crafted YAML triggers an uncatchable StackOverflowException. This terminates the hosting process, causing denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203