{"id":"CVE-2026-59867","aliases":["GHSA-rg4h-fpcp-2qm8"],"url":"https://o3.security/vulnerability/CVE-2026-59867","summary":"Kiota: Generation-time SSRF + remote/local file inclusion via unrestricted $ref","details":"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.","published":"2026-07-16T14:48:11.958Z","modified":"2026-08-19T09:06:20.276069Z","cvss":{"score":7.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"NuGet","name":"Microsoft.OpenApi.Kiota","fixedVersion":"1.32.5"},{"ecosystem":"NuGet","name":"Microsoft.OpenApi.Kiota.Builder","fixedVersion":"1.32.5"},{"ecosystem":"NuGet","name":"Microsoft.OpenApi.Kiota","fixedVersion":"1.29.1"},{"ecosystem":"NuGet","name":"Microsoft.OpenApi.Kiota.Builder","fixedVersion":"1.29.1"}],"fix":{"url":"https://github.com/microsoft/kiota/commit/cccd798027f0a20db796b3df6c64f9897a39d7b1","label":"microsoft/kiota@cccd798"},"references":[{"type":"WEB","url":"https://github.com/microsoft/kiota/releases/tag/v1.32.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59867.json"},{"type":"ADVISORY","url":"https://github.com/microsoft/kiota/security/advisories/GHSA-rg4h-fpcp-2qm8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59867"},{"type":"FIX","url":"https://github.com/microsoft/kiota/commit/cccd798027f0a20db796b3df6c64f9897a39d7b1"},{"type":"FIX","url":"https://github.com/microsoft/kiota/pull/7888"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-19T09:06:20.276069Z"}}