Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft OpenAPI spec with malicious $ref
-
DeliveryDeliver spec to victim developer/CI
-
ExploitVictim runs kiota generate
-
ExecutionKiota resolves ref via SSRF/LFI
-
PersistExternal schema fetched and inlined
-
ImpactInternal data leaked into generated client
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a victim to run a Kiota generation command (e.g. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N, base 7.1) captures the real profile: network-reachable side effects (SSRF/RFI) and high confidentiality impact from local file inclusion, but gated by user interaction - a developer must actually run |
| Exploit ScenarioDerived | A developer generates a client from an OpenAPI description supplied by a third party (or whose $ref values an attacker can influence), running |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 16, 2026
Build-time SSRF, remote file inclusion, and local file inclusion in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description force the kiota generate command to fetch arbitrary remote http(s) URLs and read local absolute or out-of-tree file paths while resolving $ref values. Because Kiota inlined those external schemas into generated clients, an attacker could exfiltrate internal endpoints or leak local file contents (e.g. REMOTE_KIOTA_PROP-style properties) into produced code. No public exploit has been identified at time of analysis; the risk is developer/CI-toolchain oriented and requires a developer to run generation against a malicious or influenced description (CVSS 7.1).
RemediationAI
Vendor-released patch: upgrade Microsoft Kiota to 1.32.5 or later, where external references are blocked by default via AllowedExternalOriginsStreamLoader. After upgrading, only re-enable external reference loading where genuinely required by passing --allowed-external-origins with the narrowest possible allowlist (specific full URIs or paths rather than the wildcard *, which reopens the original SSRF/LFI exposure). As a general control regardless of version, treat OpenAPI descriptions from third parties as untrusted input: run generation for untrusted specs in an isolated/sandboxed CI runner with no access to internal networks or secrets, and pre-inspect descriptions for external $ref values. See advisory GHSA-rg4h-fpcp-2qm8 (https://github.com/microsoft/kiota/security/advisories/GHSA-rg4h-fpcp-2qm8) and the release notes at https://github.com/microsoft/kiota/releases/tag/v1.32.5.
Affected VersionsENISA
Affected Packages
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
Kiota is Microsoft's OpenAPI-based HTTP client code generator, widely used in the .NET and Microsoft Graph SDK ecosystems to turn OpenAPI/Swagger descriptions into typed API clients across languages. The flaw is a CWE-22 path-traversal / external-reference resolution issue in Kiota.Builder's stream-loading layer: when the OpenAPI parser encountered a $ref, the default DefaultStreamLoader transparently resolved and loaded the referenced resource, whether a remote http(s) URI or a local absolute/relative filesystem path outside the project tree. Because $ref targets are attacker-influenceable data inside the description document, schema resolution became an unbounded fetch/read primitive. The fix (PR #7888, commit cccd798) introduces AllowedExternalOriginsStreamLoader, which denies all external references by default and only loads origins explicitly permitted via the new --allowed-external-origins option (supporting *, full URIs, URI patterns, and path patterns).
Know when Kiota gets its next vulnerability
- 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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
SSRF fetch gives AV:N with no auth to the tool (PR:N), but a developer must run generation on a malicious spec (UI:R); LFI yields C:H while schema inlining gives only I:L and no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.5, Kiota resolved OpenAPI $ref values by fetching remote http(s) URLs and reading local absolute or out-of-tree file paths, allowing kiota generate on an attacker-controlled or attacker-influenced description to perform build-time SSRF, remote file inclusion, and local file inclusion by inlining external schemas such as REMOTE_KIOTA_PROP or Leaked into generated clients. This issue is fixed in version 1.32.5 by AllowedExternalOriginsStreamLoader and the --allowed-external-origins option.
Executive ViewAI
Microsoft Kiota, a developer code-generation tool, contains a build-time vulnerability (CVE-2026-59867, CVSS 7.1) that allows attackers to manipulate OpenAPI specifications to exfiltrate internal API endpoints and local file contents into generated client code. Organizations face supply-chain risk if developers generate code from untrusted or attacker-influenced API specifications, potentially introducing compromised dependencies into production applications.
Restrict kiota generate execution to specifications originating from signed, internally-audited sources only; require code-review approval of all generated client code before version control or production use; disable Kiota usage in untrusted development environments pending patch availability; consider temporary migration to alternative code-generation frameworks if patch timeline extends beyond 30 days.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Command injection in Microsoft Kiota before 1.32.5 lets a malicious or compromised OpenAPI description dictate the insta
Path traversal and code injection in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description write
Path traversal in Microsoft Kiota before 1.32.5 lets an attacker-controlled OpenAPI description inject unvalidated `stat
Code injection in Microsoft Kiota 0.5.0 through pre-1.35.0 allows attacker-controlled text embedded in an OpenAPI descri
PHP code generation in Microsoft Kiota prior to 1.32.4 permits injection of arbitrary PHP code when the generator proces
Code-generation injection in Microsoft Kiota's C# XML documentation-comment writer allows an attacker who controls or co
Code injection in Microsoft Kiota Ruby code generator allows remote code execution through crafted OpenAPI specification
Code injection in Microsoft Kiota's Python client generator (versions prior to 1.32.0) allows an attacker who controls a
Code injection in Microsoft Kiota versions prior to 1.31.1 allows attackers who control or tamper with OpenAPI descripti
Arbitrary file write via path traversal in Microsoft Kiota (OpenAPI HTTP client/plugin code generator) before 1.32.5 all
Microsoft Kiota, the OpenAPI-based HTTP client code generator, fails to validate the x-ai-capabilities.response_semantic
EUVD-2026-44937
GHSA-rg4h-fpcp-2qm8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB