# CVE-2026-105795: Kiota: Unsafe oauth_card_path references in Kiota-generated API plugin manifests

> Attackers can inject unsafe paths into generated manifests, allowing downstream hosts to access unauthorized files or authentication cards.

- **Severity:** Low 3.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 6 Oct 2026
- **Updated:** 6 Oct 2026
- **Also known as:** GHSA-6gw6-rv2g-25mg

## What is CVE-2026-105795?

CVE-2026-105795 is a low-severity path traversal vulnerability in Microsoft.OpenApi.Kiota, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Kiota is an OpenAPI based HTTP Client code generator. From 1.25.1 until 1.35.0, Kiota copies x-ai-capabilities.response_semantics.oauth_card_path from an attacker-controlled or compromised OpenAPI description into a generated API plugin manifest without validating that the value is a safe package-relative file reference. Parent-directory traversal, rooted paths, or absolute URIs can therefore reach a consuming host that resolves the reference, allowing the host to cross the intended plugin-package boundary or use an unintended authentication card. Kiota does not itself read a local file or execute code merely while generating the manifest, and impact requires downstream resolution of the unsafe reference. This issue is fixed in version 1.35.0.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-105795?

4 open source packages ship an affected version, including Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `Microsoft.OpenApi.Kiota` | NuGet | From 1.25.1 | 1.35.0 |
| `Microsoft.OpenApi.Kiota` | NuGet | From 1.25.1 | 1.35.0 |
| `Microsoft.OpenApi.Kiota.Builder` | NuGet | From 1.25.1 | 1.35.0 |
| `Microsoft.OpenApi.Kiota.Builder` | NuGet | From 1.25.1 | 1.35.0 |

## How do I fix CVE-2026-105795?

Upgrade Microsoft.OpenApi.Kiota to 1.35.0 or later.

## Is CVE-2026-105795 being exploited?

There is no known exploitation of CVE-2026-105795 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-105795 and fix it if it is affected.

What it is: CVE-2026-105795 is a low-severity path traversal vulnerability in Microsoft.OpenApi.Kiota, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-105795 in the wild and no public exploit code.

Affected packages and fixed versions:
- Microsoft.OpenApi.Kiota (NuGet): affected from 1.25.1; fixed in 1.35.0
- Microsoft.OpenApi.Kiota (NuGet): affected from 1.25.1; fixed in 1.35.0
- Microsoft.OpenApi.Kiota.Builder (NuGet): affected from 1.25.1; fixed in 1.35.0
- Microsoft.OpenApi.Kiota.Builder (NuGet): affected from 1.25.1; fixed in 1.35.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-105795/ (Markdown: https://insights.sbomify.com/CVE-2026-105795/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-105795
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-105795
- OSV: https://osv.dev/vulnerability/CVE-2026-105795

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-105795/
Summaries are generated and may contain mistakes; the official description above is the record.
