CVE-2026-72923 — Vulnerability in Microsoft.OpenApi.Readers
Microsoft.OpenApi.YamlReader vulnerable to denial of service via YAML alias expansion
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.90%). Schedule for your next planned update.
Does your project use an affected Microsoft.OpenApi.Readers version?
Paste your packages.lock.json to check it for CVE-2026-72923 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
A small YAML OpenAPI document containing nested anchors and aliases can cause uncontrolled resource consumption in Microsoft.OpenApi.YamlReader and Microsoft.OpenApi.Readers. The issue affects OpenAPI document parsing through the public YAML reader APIs and can cause the parsing process to allocate excessive memory and terminate through out-of-memory conditions.
Affected versions
Microsoft.OpenApi.YamlReader
>= 2.0.0-preview.11, < 2.12.0>= 3.0.0, < 3.10.0
Microsoft.OpenApi.Readers
< 1.6.30
Patches
- For the 1.X major version, versions 1.6.30 and above are patched.
- For the 2.X major version, versions 2.12.0 and above are patched.
- For the 3.X major version, versions 3.10.0 and above are patched.
Impact
Applications, CLIs, developer tools, or services that parse untrusted YAML OpenAPI documents in-process may be terminated by a crafted YAML document containing nested anchors and aliases.
The impact is availability/process termination only. This report does not claim remote code execution, authentication bypass, credential exposure, privilege escalation, data exposure, or Microsoft hosted service impact.
Details
Microsoft.OpenApi.YamlReader and Microsoft.OpenApi.Readers parses YAML through SharpYaml. SharpYaml represents aliases as shared YamlNode instances in a directed acyclic graph, so the initial parsed YAML graph remains small. During conversion to System.Text.Json.Nodes.JsonNode, aliases must be materialized as independent nodes because JsonNode instances cannot be attached to multiple parents.
Without a bound on that conversion work, a small YAML document using nested anchors and aliases can expand exponentially during conversion. With N nested anchors each referenced k times, conversion can require k^N materialized JSON nodes, leading to excessive memory allocation and possible process termination.
This is an uncontrolled resource consumption vulnerability, also known as a "billion laughs" style denial of service.
Example payload
openapi: 3.0.0
info:
title: Test
version: 0.0.1
paths: {}
x-a: &a ["lol", "lol", "lol", "lol", "lol", "lol", "lol", "lol", "lol"]
x-b: &b [*a, *a, *a, *a, *a, *a, *a, *a, *a]
x-c: &c [*b, *b, *b, *b, *b, *b, *b, *b, *b]
x-d: &d [*c, *c, *c, *c, *c, *c, *c, *c, *c]
x-e: &e [*d, *d, *d, *d, *d, *d, *d, *d, *d]
x-f: &f [*e, *e, *e, *e, *e, *e, *e, *e, *e]
Remediation
Users should upgrade to Microsoft.OpenApi.YamlReader 2.12.0 or 3.10.0, or Microsoft.OpenApi.Readers 1.6.30, depending on the major version line they consume.
The patched versions bound YAML-to-JSON conversion work and fail fast instead of allowing unbounded expansion. The default limits are:
- Maximum materialized node count:
5,000,000 - Maximum nesting depth:
64
When the limits are exceeded, OpenApiYamlReader.Read reports an OpenApiDiagnostic error and does not return a parsed document.
The limits are exposed as process-wide static properties on YamlConverter for consumers that need to tune them for trusted workloads:
YamlConverter.MaxNodeCountYamlConverter.MaxDepth
Applications that parse OpenAPI documents from untrusted sources should avoid parsing those documents in the primary application process when possible. Running parsing in an isolated process can reduce the blast radius of parser failures.
Advisory Timeline
- First published October 14, 2026 (43 days ago).
- Last revised October 14, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Microsoft.OpenApi.Readers --version 1.6.30
dotnet add package Microsoft.OpenApi.YamlReader --version 3.10.0
dotnet add package Microsoft.OpenApi.YamlReader --version 2.12.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: NuGet (2).
| Package | Fixed In |
|---|---|
| Microsoft.OpenApi.Readers NuGet · Affected: 1.0.0, 1.0.0-beta008, 1.0.0-beta009, 1.0.0-beta010 (+67 more) | 1.6.30 |
| Microsoft.OpenApi.YamlReader NuGet · Affected: 3.0.0, 3.0.1, 3.0.2, 3.0.3 (+17 more) | 3.10.0 |
| Microsoft.OpenApi.YamlReader NuGet · Affected: 2.0.0, 2.0.1, 2.1.0, 2.10.0 (+31 more) | 2.12.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/microsoft/OpenAPI.NET/security/advisories/GHSA-7pxr-59rr-hqj2WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-72923ADVISORY
- https://github.com/microsoft/OpenAPI.NET/pull/3000WEB
- https://github.com/microsoft/OpenAPI.NET/pull/3005WEB
- https://github.com/microsoft/OpenAPI.NET/pull/3020WEB
- https://github.com/microsoft/OpenAPI.NET/commit/1f9aea9bdcbf4066b59ce33b3bd8f97ed9cb4766WEB
- https://github.com/microsoft/OpenAPI.NET/commit/21793261d6860fb6e607b71fd95c0bd320724764WEB
- https://github.com/microsoft/OpenAPI.NET/commit/4db9af07d112cdf45170b7a946f956ffe74fa14eWEB
- https://github.com/microsoft/OpenAPI.NETPACKAGE
- https://github.com/microsoft/OpenAPI.NET/releases/tag/v1.6.30WEB
- https://github.com/microsoft/OpenAPI.NET/releases/tag/v2.12.0WEB
- https://github.com/microsoft/OpenAPI.NET/releases/tag/v3.10.0WEB
Frequently Asked Questions
- What is CVE-2026-72923?
- Microsoft.OpenApi.YamlReader vulnerable to denial of service via YAML alias expansion. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-72923?
- CVE-2026-72923 affects Microsoft.OpenApi.Readers and Microsoft.OpenApi.YamlReader. It has a 1.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-72923 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 80.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-102529HIGH
HtmlSanitizer: CSS Removal DoS
- CVE-2026-63184HIGH
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion