Vulnerability · Published Jul 16, 2026 · Assigned by GitHub_M
CVE-2026-59865Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
Critical 9.3
In plain English
A critical-severity code injection in kiota from microsoft. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.4% (higher than 91% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| NuGet | microsoft.openapi.kiota | 1.32.5 | GHSA-hq9q-27g5-qwpj |
| NuGet | microsoft.openapi.kiota | 1.29.1 | GHSA-hq9q-27g5-qwpj |
| NuGet | microsoft.openapi.kiota.builder | 1.32.5 | GHSA-hq9q-27g5-qwpj |
| NuGet | microsoft.openapi.kiota.builder | 1.29.1 | GHSA-hq9q-27g5-qwpj |
Affected products (as reported)
Weakness: CWE-94, CWE-829 · 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
References
- https://github.com/microsoft/kiota/security/advisories/GHSA-hq9q-27g5-qwpj x_refsource_CONFIRM
- https://github.com/microsoft/kiota/pull/7883 x_refsource_MISC
- https://github.com/microsoft/kiota/commit/e1d6d76c6eecbe50785429166faaf8c831e036c6 x_refsource_MISC
- https://github.com/microsoft/kiota/releases/tag/v1.32.5 x_refsource_MISC