{"id":"CVE-2026-59865","published":"2026-07-16T14:43:40Z","modified":"2026-08-17T15:03:03Z","title":"Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`","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 info` read x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand plus dependency name and version values from an OpenAPI description and presented the spec-supplied command as Kiota's recommended install command, allowing an attacker-controlled or compromised description to cause command injection when the suggested command was run manually or through the Kiota VS Code extension's kiota info --json dependency-install flow. This issue is fixed in version 1.29.1 and 1.32.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04359,"percentile":0.91471,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/microsoft/kiota/security/advisories/GHSA-hq9q-27g5-qwpj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoft/kiota/pull/7883","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/kiota/commit/e1d6d76c6eecbe50785429166faaf8c831e036c6","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/kiota/releases/tag/v1.32.5","tags":["x_refsource_MISC"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":18.29},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"microsoft","affectedVersions":[{"vendor":"microsoft","product":"kiota","versions":[">= 1.30.0, < 1.31.1","< 1.29.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-17T03:56:38.534893Z","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-hq9q-27g5-qwpj"],"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-hq9q-27g5-qwpj"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-44933","exploited":false,"provenance":"source"},"summary":{"text":"Kiota, Microsoft's OpenAPI-based HTTP client code generator, has a flaw in its kiota info command, which presented the dependency install command supplied inside an OpenAPI description (the x-ms-kiota-info dependencyInstallCommand field) as its recommended install command. An attacker who can supply or tamper with an OpenAPI description can get a malicious command injected into the suggested install step, which is exploited when a user runs that suggested command manually or through the Kiota VS Code extension's dependency-install flow, with no authentication required beyond that user action.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:01:56Z"}}