All vulnerabilities
CVE-2026-105795GHSA-6gw6-rv2g-25mg

Microsoft.OpenApi.Kiota: Kiota: Unsafe oauth_card_path references in Kiota-generated API plugin manifests

microsoft Microsoft.OpenApi.KiotanugetLibraries & packages
CVSS
3.1Low
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)1.21%Chance of exploitation activity in the next 30 days, higher than 68% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in1.35.0Fixed versionGitHub
Published6 Oct 2026Updated 6 Oct 2026CVE List

What fixes it

  • 1.35.0Microsoft.OpenApi.Kiota, nugetGitHubdotnet add package Microsoft.OpenApi.Kiota --version 1.35.0
  • 1.35.0Microsoft.OpenApi.Kiota.Builder, nugetGitHubdotnet add package Microsoft.OpenApi.Kiota.Builder --version 1.35.0
  • 1.35.0Microsoft.OpenApi.Kiota, NuGetOSVdotnet add package Microsoft.OpenApi.Kiota --version 1.35.0
  • 1.35.0Microsoft.OpenApi.Kiota.Builder, NuGetOSVdotnet add package Microsoft.OpenApi.Kiota.Builder --version 1.35.0

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Impact

When 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.

The 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.

Affected versions

The 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.

Patches

Upgrade 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.

  • Fix: https://github.com/microsoft/kiota/pull/8055
  • Fixed release: https://github.com/microsoft/kiota/releases/tag/v1.35.0

Workarounds

Generate 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.

Related advisories

GHSA-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.

Text from GitHub Advisory Database

Affected versions 26

  • Microsoft.OpenApi.Kiota, nuget>= 1.25.1, < 1.35.0GitHub
  • Microsoft.OpenApi.Kiota.Builder, nuget>= 1.25.1, < 1.35.0GitHub
  • kiotaaffected: >= 1.25.1, < 1.35.0CVE List
  • Microsoft.OpenApi.Kiotaaffected: >= 1.25.1, < 1.35.0CVE List
  • Microsoft.OpenApi.Kiota.Builderaffected: >= 1.25.1, < 1.35.0CVE List
  • Microsoft.OpenApi.Kiota, NuGetfrom 1.25.1, fixed in 1.35.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.25.1OSV
  • Microsoft.OpenApi.Kiota, NuGet1.26.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.26.1OSV
  • Microsoft.OpenApi.Kiota, NuGet1.27.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.28.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.29.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.29.1OSV
  • Microsoft.OpenApi.Kiota, NuGet1.30.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.31.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.31.1OSV
  • Microsoft.OpenApi.Kiota, NuGet1.32.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.32.1OSV
  • Microsoft.OpenApi.Kiota, NuGet1.32.2OSV
  • Microsoft.OpenApi.Kiota, NuGet1.32.3OSV
  • Microsoft.OpenApi.Kiota, NuGet1.32.4OSV
  • Microsoft.OpenApi.Kiota, NuGet1.32.5OSV
  • Microsoft.OpenApi.Kiota, NuGet1.33.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.34.0OSV
  • Microsoft.OpenApi.Kiota, NuGet1.34.1OSV
  • Microsoft.OpenApi.Kiota.Builder, NuGetfrom 1.25.1, fixed in 1.35.0OSV

References 6