CVE-2026-105795: Kiota Unsafe Oauth_card_path References Vulnerability
LOWCVE-2026-105795 is a LOW (CVSS 3.1) unsafe oauth_card_path references vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Kiota libraries in the NuGet ecosystem. The issue involves unsafe oauth_card_path references in kiota-generated api plugin manifests. Remediation is available by upgrading affected packages to version 1.35.0.
CVE-2026-105795 at a Glance
Security Impact
CVSS: 3.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-105795
To remediate this vulnerability, upgrade all affected Kiota dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Microsoft.OpenApi.Kiota to 1.35.0
Upgrade Microsoft.OpenApi.Kiota.Builder to 1.35.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.OpenApi.Kiota
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-105795, inspect your project dependencies for Kiota:
inspect dependencies for Microsoft.OpenApi.Kiota
Analyze the terminal output to locate any version of Kiota in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.35.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Kiota, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-105795 Affected Kiota Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.OpenApi.Kiota
|
NuGet |
≥ 1.25.1
< 1.35.0
|
1.35.0
|
|
Microsoft.OpenApi.Kiota.Builder
|
NuGet |
≥ 1.25.1
< 1.35.0
|
1.35.0
|
References
Frequently Asked Questions
What is CVE-2026-105795?
Which Kiota versions are affected?
What version fixes CVE-2026-105795?
Is Microsoft.OpenApi.Kiota affected?
Is Microsoft.OpenApi.Kiota.Builder affected?
What is the CVSS score of CVE-2026-105795?
What CWE is associated with CVE-2026-105795?
How can I check NuGet dependencies for CVE-2026-105795?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6gw6-rv2g-25mg",
"modified" : "2026-10-06T15:36:13Z",
"published" : "2026-10-06T15:36:13Z",
"aliases" : [ "CVE-2026-105795" ],
"summary" : "Kiota: Unsafe oauth_card_path references in Kiota-generated API plugin manifests",
"details" : "### Impact\n\nWhen generating an API plugin manifest from an attacker-controlled or compromised OpenAPI description, Kiota copies `x-ai-capabilities.response_semantics.oauth_card_path` into the manifest without validating that it is a safe package-relative file reference. An attacker can supply parent-directory traversal, rooted paths, or absolute URIs instead of a card file within the plugin package.\n\nThe unsafe reference is propagated into the generated manifest. Its security effect depends on the downstream host's handling of the reference when the plugin is packaged and deployed. This is not local code execution or a file read performed by Kiota merely during generation. A consuming host that resolves the untrusted reference can cross the intended package boundary or use an unintended authentication card.\n\n### Affected versions\n\nThe affected NuGet packages are `Microsoft.OpenApi.Kiota` and `Microsoft.OpenApi.Kiota.Builder`, starting with version 1.25.1, which introduced this manifest field. The field remains unvalidated through version 1.34.1, including the separate 1.29.1 security-backport release. Version 1.35.0 fixes the issue.\n\n### Patches\n\nUpgrade to Kiota 1.35.0 or later and regenerate affected plugin manifests. Kiota now applies the existing safe-file-reference validator to `oauth_card_path`, drops unsafe references, and emits a warning. Valid relative card paths remain supported.\n\n- Fix: https://github.com/microsoft/kiota/pull/8055\n- Fixed release: https://github.com/microsoft/kiota/releases/tag/v1.35.0\n\n### Workarounds\n\nGenerate plugins only from trusted, integrity-protected OpenAPI descriptions. Before packaging or deployment, review generated manifests and remove any `oauth_card_path` that is not a safe relative reference confined to the plugin package. Do not rely on validation of sibling manifest fields to validate this field.\n\n### Related advisories\n\nGHSA-4jwf-m4wg-8p66 and GHSA-p5rm-jg5c-8c77 cover `static_template.file`. Their fixes do not enforce validation at the separate `oauth_card_path` emission site.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.OpenApi.Kiota"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.25.1"
}, {
"fixed" : "1.35.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.OpenApi.Kiota.Builder"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.25.1"
}, {
"fixed" : "1.35.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/microsoft/kiota/security/advisories/GHSA-6gw6-rv2g-25mg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105795"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/kiota/pull/8055"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/kiota/commit/fc0f219b8a665c4c69be8befcff035ba0eb8e4ce"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/microsoft/kiota"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/kiota/releases/tag/v1.35.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-06T15:36:13Z",
"nvd_published_at" : "2026-10-06T15:17:16Z"
}
}