Vulnerabilities / CVE-2026-59865

critical

CVE-2026-59865

Microsoft Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`

Published Modified CWE 94, 829
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by GHSA.

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 and fixed versions

SourcePackageFixed in
nuget::GitHub Security Advisory NuGetMicrosoft.OpenApi.Kiota, Microsoft.OpenApi.Kiota.Builder, microsoft.openapi.kiota and 1 more1.32.5, 1.29.1
Show all 4 entries from 1 source
SourcePackageFixed in
nuget::GitHub Security Advisory NuGetMicrosoft.OpenApi.Kiota1.32.5, 1.29.1
nuget::GitHub Security Advisory NuGetMicrosoft.OpenApi.Kiota.Builder1.32.5, 1.29.1
nuget::GitHub Security Advisory NuGetmicrosoft.openapi.kiota1.32.5, 1.29.1
nuget::GitHub Security Advisory NuGetmicrosoft.openapi.kiota.builder1.32.5, 1.29.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.