CVE-2026-59865

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

Published Jul 16, 2026 CVSS 4.0 · 9.3 Critical EPSS 4.4% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Kiota is an OpenAPI based HTTP Client code generator. Prior to versions 1.29.1 and 1.32.5, the tool’s kiota info command read the OpenAPI specification field x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand and the associated dependency name and version values, presenting the spec‑supplied command as the recommended install command. An attacker who controls or compromises the specification can embed arbitrary shell commands in that field. If the suggested command is run manually or automatically by the Kiota VS Code extension’s kiota info --json dependency‑install flow, the injected commands execute with the privileges of the user running Kiota, delivering a full remote command execution vulnerability. The weakness is classified as CWE‑829 (Command Injection) and also involves CWE‑94 (Improper Input Sanitization).

Affected Systems

The vulnerability affects the Microsoft Kiota project. Versions prior to 1.29.1 and 1.32.5 are vulnerable; version 1.32.5 and later contain the fix and are not affected. The advisory includes Microsoft Kiota as the sole impacted vendor.

Risk and Exploitability

The CVSS score of 9.3 reflects a high severity, with full adversary privileges when the command is executed. The EPSS score of 4% indicates a low but non‑zero likelihood of exploitation, though the attacker would still need an attacker‑controlled OpenAPI specification and a user or extension that processes it. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit this via the Kiota command‑line interface or the VS Code extension if it auto‑executes dependency‑install commands, making it most dangerous in environments where untrusted specifications are processed without validation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kiota to version 1.32.5 or later to eliminate the command injection flaw.
  • If upgrading is not immediately possible, refrain from running "kiota info" on untrusted or externally supplied specifications.
  • For environments using the VS Code extension, disable automatic dependency‑install flows or manually review the dependencyInstallCommand before execution to prevent command injection.

Generated by OpenCVE AI on August 24, 2026 at 16:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hq9q-27g5-qwpj Microsoft Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
History
Type Values Removed Values Added
Description Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.5. 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.
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Microsoft
Microsoft kiota
Vendors & Products Microsoft
Microsoft kiota
Type Values Removed Values Added
Description Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.5.
Title Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
Weaknesses CWE-829
CWE-94
References
Metrics cvssV4_0

{'score': 9.3, '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'}

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 17, 2026, 3:03 PM
Reserved
Jul 7, 2026, 3:41 PM
Status
Deferred
Published
Jul 16, 2026, 4:19 PM
Modified
Oct 24, 2026, 8:10 PM