CVE-2026-49451: Microsoft.OpenApi Circular Schema References May Terminate Vulnerability
HIGHCVE-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.
CVE-2026-49451 at a Glance
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).
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.
Upgrade Microsoft.OpenApi to 2.7.5
Upgrade Microsoft.OpenApi to 3.5.4
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
CVE-2026-49451 Affected Microsoft.OpenApi Versions
2 component(s)| 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?
Which Microsoft.OpenApi versions are affected?
What version fixes CVE-2026-49451?
Is Microsoft.OpenApi affected?
What is the CVSS score of CVE-2026-49451?
What CWE is associated with CVE-2026-49451?
How can I check NuGet dependencies for CVE-2026-49451?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}