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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.89%, higher than 80% of CVEs (2026-12-01)
- Published: 2026-07-16T14:48:11.958Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-rg4h-fpcp-2qm8
- Weaknesses: CWE-22, CWE-829, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- microsoft kiota: >= 1.30.0, < 1.31.1; < 1.29.1
- Microsoft.OpenApi.Kiota (NuGet): from 1.30.0 before 1.32.5; before 1.29.1
- Microsoft.OpenApi.Kiota.Builder (NuGet): from 1.30.0 before 1.32.5; before 1.29.1

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`

## References

- <https://github.com/microsoft/kiota/security/advisories/GHSA-rg4h-fpcp-2qm8> (web)
- <https://github.com/microsoft/kiota/pull/7888> (web)
- <https://github.com/microsoft/kiota/commit/cccd798027f0a20db796b3df6c64f9897a39d7b1> (web)
- <https://github.com/microsoft/kiota/releases/tag/v1.32.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59867> (advisory)
- <https://github.com/microsoft/kiota> (package)

## Sources

- CVE List: [CVE-2026-59867](https://www.cve.org/CVERecord?id=CVE-2026-59867), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-rg4h-fpcp-2qm8](https://github.com/advisories/GHSA-rg4h-fpcp-2qm8), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2026-59867](https://nvd.nist.gov/vuln/detail/CVE-2026-59867), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-59867 · Whole record: https://cve.day/CVE-2026-59867.json · Rebuilt by cve.day 2026-11-25T22:59:28.395Z
