Vulnerabilities in pkg:nuget/Microsoft.OpenApi

PACKAGE
Advisory Identifier: GHSA-v5pm-xwqc-g5wc
Advisory Summary

CVE-2026-49451 is a HIGH (CVSS 7.5) circular schema references may terminate vulnerability (CWE-674: Uncontrolled Recursion) affecting Microsoft.OpenApi libraries in the NuGet ecosystem. The issue involves circular schema references may terminate openapi parsing. Remediation is available by upgrading affected packages to version 2.7.5, 3.5.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/Microsoft.OpenApi

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-v5pm-xwqc-g5wc CVE-2026-49451 HIGH Microsoft.OpenAPI: Circular schema references may terminate OpenAPI parsing

CVE-2026-49451 at a Glance

CVE Identifier CVE-2026-49451
GHSA Identifier GHSA-v5pm-xwqc-g5wc
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Microsoft.OpenApi
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-49451

To remediate this vulnerability, upgrade all affected Microsoft.OpenApi 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 fixed: 2.7.5
Upgrade Microsoft.OpenApi to 2.7.5
Microsoft.OpenApi fixed: 3.5.4
Upgrade Microsoft.OpenApi to 3.5.4
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

How to Check if You Are Affected

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

inspect dependencies for Microsoft.OpenApi

Analyze the terminal output to locate any version of Microsoft.OpenApi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.5), 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-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Microsoft.OpenApi, 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 OpenAPI document containing a circular schema reference can cause process termination through stack overflow in Microsoft.OpenApi. The issue affects OpenAPI document parsing through public OpenAPI.NET reader APIs and has been confirmed across both JSON and YAML reader paths. ## Affected versions - `>= 2.0.0-preview.11, <= 2.7.4` - `>= 3.0.0, <= 3.5.3` ### Patches - For the 2.X major version, versions 2.7.5 and above are patched. - For the 3.X major version, versions 3.5.4 and above are patched. - For the 1.X major version, the issue does not apply since that version of the library *could not* resolve references that pointed to another reference. ## Impact Applications, CLIs, developer tools, or services that parse untrusted OpenAPI documents in-process may be terminated by a crafted OpenAPI document containing circular schema references. 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 A standalone isolated-process harness confirmed repeatable process termination through public OpenAPI.NET reader APIs. The issue reproduces in the affected released NuGet packages and affects both JSON and YAML reader paths. A separate Microsoft-owned local consumer, `microsoft/kiota`, also reproduces the termination through the `kiota show --openapi <file>` workflow. That workflow parses OpenAPI files in-process using Microsoft.OpenApi and Microsoft.OpenApi.YamlReader. ### Example payload ```json { "openapi": "3.0.0", "info": { "title": "Test", "version": "0.0.1" }, "paths": {}, "components": { "schemas": { "A": { "$ref": "#/components/schemas/B" }, "B": { "$ref": "#/components/schemas/A" } } } } ``` ## Remediation Users should upgrade to Microsoft.OpenApi `2.7.5` or `3.5.4`, depending on the major version line they consume. 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-49451 Affected Microsoft.OpenApi Versions

2 component(s)
Fixed Versions:
2.7.53.5.4
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.OpenApi
NuGet
≥ 2.0.0-preview.11
< 2.7.5
2.7.5
Microsoft.OpenApi
NuGet
≥ 3.0.0
< 3.5.4
3.5.4

References

Frequently Asked Questions

What is CVE-2026-49451?
CVE-2026-49451 is a security vulnerability in Microsoft.OpenApi involving Circular schema references may terminate OpenAPI parsing under CWE-674: Uncontrolled Recursion.
Which Microsoft.OpenApi versions are affected?
Affected versions include releases prior to 2.7.5, 3.5.4 across affected packages: Microsoft.OpenApi.
What version fixes CVE-2026-49451?
Upgrading to 2.7.5, 3.5.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.OpenApi affected?
Yes, Microsoft.OpenApi is affected in releases prior to 2.7.5, 3.5.4. Upgrade your dependency to 2.7.5, 3.5.4 or later.
What is the CVSS score of CVE-2026-49451?
CVE-2026-49451 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-49451?
CVE-2026-49451 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check NuGet dependencies for CVE-2026-49451?
Run the dependency tree command: 'inspect dependencies for Microsoft.OpenApi'. 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-v5pm-xwqc-g5wc",
  "modified" : "2026-07-06T12:57:29Z",
  "published" : "2026-06-30T15:56:24Z",
  "aliases" : [ "CVE-2026-49451" ],
  "summary" : "Microsoft.OpenAPI: Circular schema references may terminate OpenAPI parsing",
  "details" : "### Impact\n\nA small OpenAPI document containing a circular schema reference can cause process termination through stack overflow in Microsoft.OpenApi. The issue affects OpenAPI document parsing through public OpenAPI.NET reader APIs and has been confirmed across both JSON and YAML reader paths.\n\n## Affected versions\n\n- `>= 2.0.0-preview.11, <= 2.7.4`\n- `>= 3.0.0, <= 3.5.3`\n\n### Patches\n\n- For the 2.X major version, versions 2.7.5 and above are patched.\n- For the 3.X major version, versions 3.5.4 and above are patched.\n- For the 1.X major version, the issue does not apply since that version of the library *could not* resolve references that pointed to another reference.\n\n## Impact\n\nApplications, CLIs, developer tools, or services that parse untrusted OpenAPI documents in-process may be terminated by a crafted OpenAPI document containing circular schema references.\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\nA standalone isolated-process harness confirmed repeatable process termination through public OpenAPI.NET reader APIs. The issue reproduces in the affected released NuGet packages and affects both JSON and YAML reader paths.\n\nA separate Microsoft-owned local consumer, `microsoft/kiota`, also reproduces the termination through the `kiota show --openapi <file>` workflow. That workflow parses OpenAPI files in-process using Microsoft.OpenApi and Microsoft.OpenApi.YamlReader.\n\n### Example payload\n\n```json\n{\n    \"openapi\": \"3.0.0\",\n    \"info\": {\n        \"title\": \"Test\",\n        \"version\": \"0.0.1\"\n    },\n    \"paths\": {},\n    \"components\": {\n        \"schemas\": {\n            \"A\": {\n                \"$ref\": \"#/components/schemas/B\"\n            },\n            \"B\": {\n                \"$ref\": \"#/components/schemas/A\"\n            }\n        }\n    }\n}\n```\n\n## Remediation\n\nUsers should upgrade to Microsoft.OpenApi `2.7.5` or `3.5.4`, depending on the major version line they consume.\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"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-preview.11"
      }, {
        "fixed" : "2.7.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.7.4"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.OpenApi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.5.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.5.3"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/OpenAPI.NET/security/advisories/GHSA-v5pm-xwqc-g5wc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-49451"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/OpenAPI.NET"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-30T15:56:24Z",
    "nvd_published_at" : "2026-06-30T17:16:22Z"
  }
}