Vulnerabilities in pkg:nuget/Microsoft.OpenApi.Readers

PACKAGE
Advisory Identifier: GHSA-7pxr-59rr-hqj2
Advisory Summary

CVE-2026-72923 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Microsoft.OpenApi.YamlReader libraries in the NuGet ecosystem. The issue involves microsoft.openapi.yamlreader vulnerable to denial of service via yaml alias expansion. Remediation is available by upgrading affected packages to version 3.10.0, 2.12.0, 1.6.30.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/Microsoft.OpenApi.Readers

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/Microsoft.OpenApi.Readers. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7pxr-59rr-hqj2 CVE-2026-72923 HIGH Microsoft.OpenApi.YamlReader vulnerable to denial of service via YAML alias expansion

CVE-2026-72923 at a Glance

CVE Identifier CVE-2026-72923
GHSA Identifier GHSA-7pxr-59rr-hqj2
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Microsoft.OpenApi.YamlReader
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-72923

To remediate this vulnerability, upgrade all affected Microsoft.OpenApi.YamlReader dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Microsoft.OpenApi.YamlReader fixed: 3.10.0
Upgrade Microsoft.OpenApi.YamlReader to 3.10.0
Microsoft.OpenApi.YamlReader fixed: 2.12.0
Upgrade Microsoft.OpenApi.YamlReader to 2.12.0
Microsoft.OpenApi.Readers fixed: 1.6.30
Upgrade Microsoft.OpenApi.Readers to 1.6.30
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Microsoft.OpenApi.YamlReader

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-72923, inspect your project dependencies for Microsoft.OpenApi.YamlReader:

inspect dependencies for Microsoft.OpenApi.YamlReader

Analyze the terminal output to locate any version of Microsoft.OpenApi.YamlReader in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.10.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Microsoft.OpenApi.YamlReader, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 ```yaml 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.MaxNodeCount` * `YamlConverter.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.

CVE-2026-72923 Affected Microsoft.OpenApi.YamlReader Versions

3 component(s)
Fixed Versions:
3.10.02.12.01.6.30
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.OpenApi.YamlReader
NuGet
≥ 3.0.0
< 3.10.0
3.10.0
Microsoft.OpenApi.YamlReader
NuGet
≥ 2.0.0-preview.11
< 2.12.0
2.12.0
Microsoft.OpenApi.Readers
NuGet
< 1.6.30
1.6.30

References

Frequently Asked Questions

What is CVE-2026-72923?
CVE-2026-72923 is a security vulnerability in Microsoft.OpenApi.YamlReader involving Microsoft.OpenApi.YamlReader vulnerable to denial of service via YAML alias expansion under CWE-400: Uncontrolled Resource Consumption.
Which Microsoft.OpenApi.YamlReader versions are affected?
Affected versions include releases prior to 3.10.0, 2.12.0, 1.6.30 across affected packages: Microsoft.OpenApi.YamlReader, Microsoft.OpenApi.Readers.
What version fixes CVE-2026-72923?
Upgrading to 3.10.0, 2.12.0, 1.6.30 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.OpenApi.YamlReader affected?
Yes, Microsoft.OpenApi.YamlReader is affected in releases prior to 3.10.0, 2.12.0. Upgrade your dependency to 3.10.0, 2.12.0 or later.
Is Microsoft.OpenApi.Readers affected?
Yes, Microsoft.OpenApi.Readers is affected in releases prior to 1.6.30. Upgrade your dependency to 1.6.30 or later.
What is the CVSS score of CVE-2026-72923?
CVE-2026-72923 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-72923?
CVE-2026-72923 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check NuGet dependencies for CVE-2026-72923?
Run the dependency tree command: 'inspect dependencies for Microsoft.OpenApi.YamlReader'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7pxr-59rr-hqj2",
  "modified" : "2026-10-14T20:11:30Z",
  "published" : "2026-10-14T20:11:29Z",
  "aliases" : [ "CVE-2026-72923" ],
  "summary" : "Microsoft.OpenApi.YamlReader vulnerable to denial of service via YAML alias expansion",
  "details" : "### Impact\n\nA 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.\n\n## Affected versions\n\n### Microsoft.OpenApi.YamlReader\n\n* `>= 2.0.0-preview.11, < 2.12.0`\n* `>= 3.0.0, < 3.10.0`\n\n### Microsoft.OpenApi.Readers\n\n* `< 1.6.30`\n\n### Patches\n\n* For the 1.X major version, versions 1.6.30 and above are patched.\n* For the 2.X major version, versions 2.12.0 and above are patched.\n* For the 3.X major version, versions 3.10.0 and above are patched.\n\n## Impact\n\nApplications, 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.\n\nThe 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.\n\n## Details\n\nMicrosoft.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.\n\nWithout 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.\n\nThis is an uncontrolled resource consumption vulnerability, also known as a \"billion laughs\" style denial of service.\n\n### Example payload\n\n```yaml\nopenapi: 3.0.0\ninfo:\n  title: Test\n  version: 0.0.1\npaths: {}\nx-a: &a [\"lol\", \"lol\", \"lol\", \"lol\", \"lol\", \"lol\", \"lol\", \"lol\", \"lol\"]\nx-b: &b [*a, *a, *a, *a, *a, *a, *a, *a, *a]\nx-c: &c [*b, *b, *b, *b, *b, *b, *b, *b, *b]\nx-d: &d [*c, *c, *c, *c, *c, *c, *c, *c, *c]\nx-e: &e [*d, *d, *d, *d, *d, *d, *d, *d, *d]\nx-f: &f [*e, *e, *e, *e, *e, *e, *e, *e, *e]\n```\n\n## Remediation\n\nUsers 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.\n\nThe patched versions bound YAML-to-JSON conversion work and fail fast instead of allowing unbounded expansion. The default limits are:\n\n* Maximum materialized node count: `5,000,000`\n* Maximum nesting depth: `64`\n\nWhen the limits are exceeded, `OpenApiYamlReader.Read` reports an `OpenApiDiagnostic` error and does not return a parsed document.\n\nThe limits are exposed as process-wide static properties on `YamlConverter` for consumers that need to tune them for trusted workloads:\n\n* `YamlConverter.MaxNodeCount`\n* `YamlConverter.MaxDepth`\n\nApplications 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.OpenApi.YamlReader"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.10.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.OpenApi.YamlReader"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-preview.11"
      }, {
        "fixed" : "2.12.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.OpenApi.Readers"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.30"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/security/advisories/GHSA-7pxr-59rr-hqj2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-72923"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/pull/3000"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/pull/3005"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/pull/3020"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/commit/1f9aea9bdcbf4066b59ce33b3bd8f97ed9cb4766"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/commit/21793261d6860fb6e607b71fd95c0bd320724764"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/commit/4db9af07d112cdf45170b7a946f956ffe74fa14e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/OpenAPI.NET"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/releases/tag/v1.6.30"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/releases/tag/v2.12.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/releases/tag/v3.10.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-14T20:11:29Z",
    "nvd_published_at" : "2026-09-08T18:20:16Z"
  }
}