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.

Severity (CVSS 4.0)9.3Critical
Exploit odds (30 days)4.4%top 8.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
NuGetmicrosoft.openapi.kiota1.32.5GHSA-hq9q-27g5-qwpj
NuGetmicrosoft.openapi.kiota1.29.1GHSA-hq9q-27g5-qwpj
NuGetmicrosoft.openapi.kiota.builder1.32.5GHSA-hq9q-27g5-qwpj
NuGetmicrosoft.openapi.kiota.builder1.29.1GHSA-hq9q-27g5-qwpj

Affected products (as reported)

VendorProductVersions
microsoft kiota >= 1.30.0, < 1.31.1< 1.29.1

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