GHSA-v5pm-xwqc-g5wc

Suggest an improvement
Source
https://github.com/advisories/GHSA-v5pm-xwqc-g5wc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-v5pm-xwqc-g5wc/GHSA-v5pm-xwqc-g5wc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v5pm-xwqc-g5wc
Aliases
  • CVE-2026-49451
Published
2026-06-30T15:56:24Z
Modified
2026-06-30T16:00:09.134866738Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Microsoft.OpenAPI: Circular schema references may terminate OpenAPI parsing
Details

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-preview11, <= 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

{
    "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.

Database specific
{
    "nvd_published_at": null,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-674"
    ],
    "github_reviewed_at": "2026-06-30T15:56:24Z",
    "github_reviewed": true
}
References

Affected packages

NuGet / Microsoft.OpenAPI

Package

Name
Microsoft.OpenAPI
View open source insights on deps.dev
Purl
pkg:nuget/Microsoft.OpenAPI

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0-preview11
Fixed
2.7.5

Affected versions

2.*
2.0.0-preview2
2.0.0-preview3
2.0.0-preview4
2.0.0-preview5
2.0.0-preview6
2.0.0-preview7
2.0.0-preview8
2.0.0-preview9
2.0.0
2.0.1
2.1.0
2.2.0
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.3.7
2.3.8
2.3.9
2.3.10
2.3.11
2.3.12
2.4.0
2.4.1
2.4.2
2.4.3
2.5.0
2.6.0
2.6.1
2.7.0
2.7.1
2.7.2
2.7.3
2.7.4

Database specific

last_known_affected_version_range
"<= 2.7.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-v5pm-xwqc-g5wc/GHSA-v5pm-xwqc-g5wc.json"

NuGet / Microsoft.OpenAPI

Package

Name
Microsoft.OpenAPI
View open source insights on deps.dev
Purl
pkg:nuget/Microsoft.OpenAPI

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
3.5.4

Affected versions

3.*
3.0.0
3.0.1
3.0.2
3.0.3
3.1.1
3.1.2
3.1.3
3.2.0
3.3.0
3.3.1
3.4.0
3.5.0
3.5.1
3.5.2
3.5.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-v5pm-xwqc-g5wc/GHSA-v5pm-xwqc-g5wc.json"
last_known_affected_version_range
"<= 3.5.3"