Intel

AIKIDO-2026-423403

Microsoft.OpenApi.YamlReader is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-7pxr-59rr-hqj2 Published Aug 14, 2026

53

Medium Risk

This Affects:

DOTNETMicrosoft.OpenApi.YamlReader
2.0.0 - 2.11.0
Fixed in 2.12.0
3.0.0 - 3.9.0
Fixed in 3.10.0
Are you affected? Scan for Free

TL;DR

The YAML reader expands YAML anchors and aliases without bounding nesting depth or the number of materialized nodes. A small crafted YAML OpenAPI document that uses recursive alias expansion (a billion laughs payload) forces YamlConverter to allocate an exponentially large node graph. Parsing such a document through the public OpenAPI reader APIs exhausts process memory and can terminate the host process. The fix enforces maximum nesting-depth and node-count limits and surfaces a diagnostic error instead of continuing expansion.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application parses untrusted or externally influenced YAML OpenAPI documents through the reader APIs.

Background info

Microsoft.OpenApi.YamlReader is vulnerable to Uncontrolled Resource Consumption in versions 2.0.0 - 2.11.0 and 3.0.0 - 3.9.0.

How to fix this

Upgrade the Microsoft.OpenApi.YamlReader library to the patch version.