Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105795 Overview
CVE-2026-105795 is a path traversal vulnerability [CWE-22] in Microsoft Kiota, an OpenAPI-based HTTP client code generator. Affected versions from 1.25.1 until 1.35.0 copy the x-ai-capabilities.response_semantics.oauth_card_path value from an OpenAPI description into a generated API plugin manifest without validating that it is a safe package-relative file reference. Attackers controlling the upstream OpenAPI document can inject parent-directory traversal sequences, rooted paths, or absolute URIs. Kiota itself does not read local files or execute code during generation, but a downstream host that resolves the manifest reference may cross the plugin-package boundary or load an unintended authentication card. The issue is fixed in version 1.35.0.
Critical Impact
A compromised or malicious OpenAPI description can cause a consuming host to resolve an attacker-controlled oauth_card_path, breaking plugin-package isolation and enabling unintended authentication card use.
Affected Products
- Microsoft Kiota versions 1.25.1 through 1.34.x
- Generated API plugin manifests produced by affected Kiota versions
- Downstream hosts that resolve oauth_card_path references from Kiota-generated manifests
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-105795 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105795
Vulnerability Analysis
Kiota generates API plugin manifests from OpenAPI descriptions. During generation, it propagates the x-ai-capabilities.response_semantics.oauth_card_path extension value directly into the output manifest. The generator does not validate that this path remains inside the manifest package boundary. An OpenAPI author or an attacker who tampers with an OpenAPI document in transit can supply values containing .. segments, absolute filesystem paths such as /etc/..., or absolute URIs. Kiota does not dereference the value at generation time, so no file read or code execution occurs in the generator itself. The security impact appears when a plugin host consumes the resulting manifest and resolves the oauth_card_path reference, loading content outside the intended package or from an attacker-chosen location.
Root Cause
The root cause is missing input validation in PluginsGenerationService within src/Kiota.Builder/Plugins/. The service copies oauth_card_path verbatim without rejecting absolute paths, URIs, or parent-directory traversal segments, violating the package-relative file reference contract [CWE-22].
Attack Vector
Exploitation requires an attacker-controlled or compromised OpenAPI description that is processed by Kiota, plus a downstream host that resolves the generated oauth_card_path. User interaction is required to run the generator against the hostile description, and attack complexity is high because success depends on the consuming host's resolution behavior.
// Patch excerpt - src/Kiota.Builder/Plugins/PluginsGenerationService.cs
[LoggerMessage(Level = LogLevel.Warning, Message = "Skipping unsafe static_template file reference '{FilePath}' in the generated plugin manifest. A static_template file reference must be a relative path that does not point outside the manifest package (no absolute paths, URIs, or '..' parent-directory segments).")]
private static partial void LogUnsafeStaticTemplateFileReference(ILogger logger, string filePath);
+[LoggerMessage(Level = LogLevel.Warning, Message = "Skipping unsafe oauth_card_path file reference '{FilePath}' in the generated plugin manifest. An oauth_card_path file reference must be a relative path that does not point outside the manifest package (no absolute paths, URIs, or '..' parent-directory segments).")]
+private static partial void LogUnsafeOAuthCardPathFileReference(ILogger logger, string filePath);
Source: GitHub Kiota Commit fc0f219
The patch introduces a validation path that logs and skips unsafe oauth_card_path references matching the same rules already enforced for static_template.
Detection Methods for CVE-2026-105795
Indicators of Compromise
- Generated plugin manifests containing oauth_card_path values with .. segments, leading / or drive letters, or http:///https:///file:// schemes.
- Kiota generator logs showing warnings about unsafe oauth_card_path or static_template file references after upgrading to 1.35.0.
- OpenAPI documents containing x-ai-capabilities.response_semantics.oauth_card_path fields that reference files outside the expected package directory.
Detection Strategies
- Statically scan OpenAPI source documents for x-ai-capabilities.response_semantics.oauth_card_path values that are not simple package-relative paths.
- Diff generated plugin manifests before and after upgrading to Kiota 1.35.0 to surface previously accepted unsafe references.
- Audit CI/CD pipelines that run Kiota against third-party or externally sourced OpenAPI descriptions.
Monitoring Recommendations
- Capture Kiota generator stdout and log output in build systems to retain the new unsafe-reference warnings.
- Monitor plugin host runtime for attempts to load oauth_card_path resources from unexpected filesystem locations or external URIs.
- Track provenance of OpenAPI descriptions ingested by developer tooling and alert on changes to AI-capabilities extensions.
How to Mitigate CVE-2026-105795
Immediate Actions Required
- Upgrade Kiota to version 1.35.0 or later across developer workstations, build agents, and container images.
- Regenerate any plugin manifests previously produced from untrusted OpenAPI descriptions using the patched version.
- Review existing plugin manifests for oauth_card_path values and remove or correct any that reference paths outside the manifest package.
Patch Information
The fix is delivered in Kiota 1.35.0 via pull request #8055, commit fc0f219. See the GitHub Security Advisory GHSA-6gw6-rv2g-25mg and the Kiota v1.35.0 Release Notes for details.
Workarounds
- Restrict Kiota generation to OpenAPI documents from trusted sources and verify integrity before processing.
- Pre-process OpenAPI descriptions to strip or validate x-ai-capabilities.response_semantics.oauth_card_path entries, rejecting absolute paths, URIs, and .. segments.
- Configure consuming plugin hosts to refuse to resolve oauth_card_path references outside the manifest package directory.
# Upgrade Kiota CLI to the patched release
dotnet tool update --global Microsoft.OpenApi.Kiota --version 1.35.0
# Validate oauth_card_path values in an OpenAPI document before generation
grep -R "oauth_card_path" ./openapi/ | grep -E '(\.\./|^\s*oauth_card_path:\s*/|://)'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

