{"id":"CVE-2026-49451","aliases":["CVE-2026-49451","GHSA-v5pm-xwqc-g5wc"],"related":[],"kind":"vulnerability","state":"published","title":"Microsoft.OpenAPI: Circular schema references may terminate OpenAPI parsing","summary":"The OpenAPI.NET SDK contains a useful object model for OpenAPI documents in .NET along with common serializers to extract raw OpenAPI JSON and YAML documents from the model. From 2.0.0-preview11 until 2.7.5 and 3.5.4, 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. This vulnerability is fixed in 2.7.5 and 3.5.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The OpenAPI.NET SDK contains a useful object model for OpenAPI documents in .NET along with common serializers to extract raw OpenAPI JSON and YAML documents from the model. From 2.0.0-preview11 until 2.7.5 and 3.5.4, 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. This vulnerability is fixed in 2.7.5 and 3.5.4.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El SDK de OpenAPI.NET contiene un modelo de objetos útil para documentos OpenAPI en .NET, junto con serializadores comunes para extraer documentos OpenAPI JSON y YAML sin procesar del modelo. Desde 2.0.0-preview11 hasta 2.7.5 y 3.5.4, un pequeño documento OpenAPI que contiene una referencia de esquema circular puede causar la terminación del proceso a través de desbordamiento de pila en Microsoft.OpenApi. El problema afecta el análisis de documentos OpenAPI a través de las API de lector públicas de OpenAPI.NET y se ha confirmado en las rutas de lector JSON y YAML. Esta vulnerabilidad está corregida en 2.7.5 y 3.5.4.","source":"nvd"}],"published":"2026-06-30T15:56:24.000Z","modified":"2026-10-25T21:10:00.770Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"version":">= 2.0.0-preview11, < 2.7.5","status":"affected"},{"version":">= 3.0.0, < 3.5.4","status":"affected"}],"vendor":"microsoft","product":"OpenAPI.NET","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0-preview.11","status":"affected","fixed":"2.7.5"}],"ecosystem":"NuGet","package":"Microsoft.OpenApi","purl":"pkg:nuget/Microsoft.OpenApi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.5.4"}],"ecosystem":"NuGet","package":"Microsoft.OpenApi","purl":"pkg:nuget/Microsoft.OpenApi","source":"ghsa"}],"references":[{"url":"https://github.com/microsoft/OpenAPI.NET/security/advisories/GHSA-v5pm-xwqc-g5wc","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49451","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/microsoft/OpenAPI.NET","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-06-30T18:57:15.842Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49451","url":"https://www.cve.org/CVERecord?id=CVE-2026-49451","licence":"CVE Terms of Use","modified":"2026-06-30T18:58:34.623Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v5pm-xwqc-g5wc","url":"https://github.com/advisories/GHSA-v5pm-xwqc-g5wc","licence":"CC-BY-4.0","modified":"2026-07-06T13:15:09.903Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49451","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49451","licence":"Public domain","modified":"2026-10-25T21:10:00.770Z"}],"updatedAt":"2026-11-25T22:59:26.714Z","epss":{"score":0.00746,"percentile":0.56075,"date":"2026-12-02T12:00:21.000Z"}}