Skip to main content

Microsoft.OpenApi CVE-2026-49451

| EUVDEUVD-2026-40365 HIGH
Uncontrolled Recursion (CWE-674)
2026-06-30 https://github.com/microsoft/OpenAPI.NET GHSA-v5pm-xwqc-g5wc
7.5
CVSS 3.1 · Vendor: https://github.com/microsoft/OpenAPI.NET
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify service that parses uploaded OpenAPI specs
  2. Delivery
    Craft document with circular A↔B $ref
  3. Exploit
    Submit document to reader API
  4. Execution
    Trigger unbounded recursion in resolver
  5. Persist
    Stack overflow terminates process
  6. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The vulnerable application must parse an attacker-supplied OpenAPI document in-process through the public OpenAPI.NET reader APIs (JSON or YAML reader path) using an affected version (2.0.0-preview11-2.7.4 or 3.0.0-3.5.3). The specific trigger is an OpenAPI document containing a circular schema reference where one $ref resolves to another $ref pointing back (e.g., components.schemas.A → B and B → A). The CVSS vector is AV:N/AC:L/PR:N/UI:N, so no authentication or user interaction is needed at the parser level; the practical limiting factor is that the deployment must actually accept and parse untrusted/externally-sourced OpenAPI documents - installations that parse only their own trusted specs are not realistically exposed. The 1.x line is not exploitable.

Impact

Signals are largely consistent in direction but modest in real-world severity. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 High) reflects pure availability impact - no confidentiality or integrity loss - which matches the vendor's explicit statement that there is no RCE, auth bypass, privilege escalation, or data exposure. The supplied Tags ('Authentication Bypass, Privilege Escalation, RCE, Information Disclosure') directly CONTRADICT the authoritative description and CVSS C:N/I:N and should be treated as inaccurate generic labeling, not as evidence of broader impact. No EPSS score, KEV listing, or SSVC decision data was provided. There is no KEV entry, so this is not confirmed actively exploited; however the advisory publishes a trivial, deterministic reproduction payload, lowering the practical barrier to triggering it. The key real-world limiter is the precondition that the affected application must parse OpenAPI documents from untrusted sources in-process - many deployments only parse their own trusted specs, which sharply narrows exposure despite the network attack vector.

Exploit ScenarioDerived

An attacker submits a small crafted OpenAPI/Swagger document - for example, schemas A and B that $ref each other - to a service, CLI, or developer tool that parses uploaded OpenAPI specs in-process using Microsoft.OpenApi. Parsing recurses without bound, overflows the stack, and terminates the process, denying service to all users of that instance. A ready-to-use reproduction payload is published in the GitHub advisory, and low attack complexity (AC:L) plus no required privileges (PR:N) make triggering trivial wherever untrusted documents are accepted.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 30, 2026

Denial of service in the Microsoft.OpenApi (OpenAPI.NET) .NET library lets a crafted OpenAPI document with circular schema $ref references crash the host process via stack overflow (CWE-674, uncontrolled recursion). Any .NET application, CLI, developer tool, or service that parses untrusted OpenAPI documents in-process through the public reader APIs is affected across both JSON and YAML reader paths, including Microsoft's own kiota tool. A working reproduction payload is published in the GitHub advisory; the impact is availability-only with no code execution, and there is no public exploit identified beyond that payload and no evidence of active exploitation.

RemediationAI

Vendor-released patch: upgrade Microsoft.OpenApi to 2.7.5 or later on the 2.x line, or to 3.5.4 or later on the 3.x line, matching whichever major version your project consumes; rebuild and redeploy downstream consumers such as kiota against the patched package. Where immediate upgrade is not possible and the application must parse OpenAPI documents from untrusted sources, move the parsing out of the primary application process and into an isolated/sandboxed worker process so a stack-overflow crash only kills the worker and not the main service (trade-off: added IPC complexity and latency); alternatively, restrict the parser to trusted, first-party OpenAPI documents and reject or size/structure-validate externally supplied specs before parsing (trade-off: blocks legitimate untrusted-input use cases). Full guidance is in the advisory at https://github.com/microsoft/OpenAPI.NET/security/advisories/GHSA-v5pm-xwqc-g5wc.

Affected VersionsENISA

OpenAPI.NET 2.0.0-preview11, < 2.7.5
OpenAPI.NET 3.0.0, < 3.5.4

Affected Packages

nuget microsoft.openapi fix: 2.7.5, 3.5.4
euvd openapi_net_2_0_0_preview11 fix: 2.7.5
euvd openapi_net_3_0_0 fix: 3.5.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in nuget, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Microsoft.OpenApi is a Microsoft-maintained NuGet library (pkg:nuget/microsoft.openapi) that reads, writes, and models OpenAPI/Swagger specification documents for the .NET ecosystem; it underpins tooling such as microsoft/kiota and broader API/SDK generation workflows. The root cause is CWE-674 (Uncontrolled Recursion): when the reader resolves a $ref that points to another $ref, two schemas that reference each other (A→B and B→A) drive the reference-resolution logic into unbounded recursion, exhausting the thread stack and terminating the process. The flaw is specific to the reference-resolution behavior introduced from the 2.x preview line onward - the 1.x line is not affected because it could not resolve a reference that pointed to another reference. Both the core JSON reader and the Microsoft.OpenApi.YamlReader path exhibit the behavior.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/microsoft/OpenAPI.NET) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Network-deliverable document with trivial deterministic payload (AV:N/AC:L/PR:N/UI:N); availability-only process crash gives A:H with C:N/I:N and unchanged scope.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/microsoft/OpenAPI.NET).

CVSS VectorVendor: https://github.com/microsoft/OpenAPI.NET

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Jun 30, 2026 - 18:01 EUVD
CVE Published
Jun 30, 2026 - 15:56 github-advisory
HIGH 7.5

DescriptionCVE.org

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

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.

Executive ViewAI

Why It Matters

The Microsoft.OpenApi (.NET) library contains a denial-of-service vulnerability (CVE-2026-49451, CVSS 7.5) affecting any .NET application that parses untrusted OpenAPI documents, including Microsoft's kiota tool. Publicly available exploit code exists in the form of a reproducible payload in the GitHub advisory; there is no evidence of active exploitation. An attacker can trigger a stack overflow by submitting a malformed OpenAPI document with circular schema references, crashing the affected application and causing service outages-a critical availability risk for all internal and external .NET services relying on OpenAPI document ingestion.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Input validation to reject OpenAPI documents with circular $ref references before processing; (2) Execute OpenAPI parsers in isolated processes or containers to limit DoS impact; (3) Restrict OpenAPI document sources to pre-approved/validated inputs only; (4) Implement network rate limiting on document submission endpoints; (5) Enhanced monitoring for unexpected process crashes in .NET services and kiota deployments; (6) Deploy API gateway filtering for external OpenAPI document sources.

Threat Intelligence Overview

EPSS Score
0.7%
Top 52% exploitable
Prevalence
Medium
widely-used .NET OpenAPI library, but DoS only hits untrusted-document parsers
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy