{"id":"CVE-2026-59867","published":"2026-07-16T14:48:11Z","modified":"2026-08-17T15:03:35Z","title":"Kiota: Generation-time SSRF + remote/local file inclusion via unrestricted $ref","vendor":"Microsoft","product":"kiota","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02393,"percentile":0.84381,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/microsoft/kiota/security/advisories/GHSA-rg4h-fpcp-2qm8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoft/kiota/pull/7888","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/kiota/commit/cccd798027f0a20db796b3df6c64f9897a39d7b1","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/kiota/releases/tag/v1.32.5","tags":["x_refsource_MISC"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":16.88},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"microsoft","affectedVersions":[{"vendor":"microsoft","product":"kiota","versions":[">= 1.30.0, < 1.31.1","< 1.29.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-16T15:35:45.668795Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Microsoft.OpenApi.Kiota","vulnerableRanges":[">=1.30.0, <1.32.5","<1.29.1"],"patched":["1.32.5","1.29.1"],"from":["GHSA-rg4h-fpcp-2qm8"],"provenance":"source"},{"ecosystem":"NuGet","package":"Microsoft.OpenApi.Kiota.Builder","vulnerableRanges":[">=1.30.0, <1.32.5","<1.29.1"],"patched":["1.32.5","1.29.1"],"from":["GHSA-rg4h-fpcp-2qm8"],"provenance":"source"}],"summary":{"text":"Kiota, Microsoft's OpenAPI-based HTTP client code generator, resolves OpenAPI $ref values without restriction, fetching remote http(s) URLs and reading local absolute or out-of-tree file paths during generation. An attacker who can supply or influence the OpenAPI description processed by kiota generate can cause the build to make server-side requests and include external or local files, with user interaction required for the generation run to occur.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:59:22Z"},"euvd":{"id":"EUVD-2026-44937","exploited":false,"provenance":"source"}}